ctucx.git: nixfiles

ctucx' nixfiles

commit d13ab550f4ed780682f78bc08ff3cd346ca33198
parent 5d82893f9beffb6289becee6d7219bfde7f261e1
Author: Katja (ctucx) <git@ctu.cx>
Date: Sun, 2 Mar 2025 00:13:29 +0100

pkgs: remove `AirSane`
3 files changed, 0 insertions(+), 51 deletions(-)
D
pkgs/AirSane/default.nix
|
19
-------------------
D
pkgs/AirSane/remove-systemd-service-install.patch
|
31
-------------------------------
M
pkgs/overlay.nix
|
1
-
diff --git a/pkgs/AirSane/default.nix b/pkgs/AirSane/default.nix
@@ -1,19 +0,0 @@
-{ stdenv, fetchFromGitHub, cmake, sane-backends, libjpeg, libpng, libusb, avahi }:
-
-stdenv.mkDerivation rec {
-  pname = "AirSane";
-  version = "0.3.4";
-
-  src = fetchFromGitHub {
-    owner  = "SimulPiscator";
-    repo   = "AirSane";
-    rev    = "v${version}";
-    sha256 = "sha256-9k+dauewYsWqy8Bfgka90pLuz/48Rk90E2L4BhpmxvM=";
-  };
-
-  patches = [
-    ./remove-systemd-service-install.patch
-  ];
-
-  buildInputs = [ cmake sane-backends libjpeg libpng libusb avahi ];
-}
diff --git a/pkgs/AirSane/remove-systemd-service-install.patch b/pkgs/AirSane/remove-systemd-service-install.patch
@@ -1,31 +0,0 @@
---- a/CMakeLists.txt	2022-03-31 21:13:41.000000000 +0200
-+++ b/CMakeLists.txt	2022-06-27 20:21:37.477248465 +0200
-@@ -152,28 +152,5 @@
- install(TARGETS ${PROJECT_NAME}
-     RUNTIME DESTINATION bin
- )
--install(FILES systemd/airsaned.service
--    DESTINATION /lib/systemd/system
--)
--install(FILES systemd/airsaned.default
--    DESTINATION /etc/default
--    RENAME airsane
--)
--
--install(CODE "
--    if(NOT EXISTS /etc/airsane/ignore.conf)
--        file(INSTALL ${CMAKE_SOURCE_DIR}/etc/ignore.conf DESTINATION /etc/airsane)
--    endif()
--")
--install(CODE "
--    if(NOT EXISTS /etc/airsane/options.conf)
--        file(INSTALL ${CMAKE_SOURCE_DIR}/etc/options.conf DESTINATION /etc/airsane)
--    endif()
--")
--install(CODE "
--    if(NOT EXISTS /etc/airsane/Gnome-scanner.png)
--        file(INSTALL ${CMAKE_SOURCE_DIR}/etc/Gnome-scanner.png DESTINATION /etc/airsane)
--    endif()
--")
- 
- endif()
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
@@ -9,7 +9,6 @@ final: prev:
 
   phockup                  = final.callPackage ./phockup.nix {};
   gotosocial               = final.callPackage ./gotosocial {};
-  AirSane                  = final.callPackage ./AirSane {};
   cinny                    = final.callPackage ./cinny.nix {};
   mbusd                    = final.callPackage ./mbusd.nix {};
   homebridge               = final.callPackage ./homebridge {};