summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-02-01 13:58:12 +0800
committerGitHub <noreply@github.com>2023-02-01 13:58:12 +0800
commitf7bae54f01be592983ef38a86efd6628160733ba (patch)
tree0d33a7ec030186af73580344dfbe7d35d8d9b2b3 /pkgs
parent03385e36c83abd48821af2a133532a6caedeac75 (diff)
parent2b6a0352c5758c7e5125aa80cfc462bd3051fd13 (diff)
downloadnixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.tar
nixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.tar.gz
nixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.tar.bz2
nixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.tar.lz
nixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.tar.xz
nixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.tar.zst
nixpkgs-f7bae54f01be592983ef38a86efd6628160733ba.zip
Merge pull request #213830 from mattmelling/xsane-fix-src
xsane: fix src location
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/graphics/sane/xsane.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/sane/xsane.nix b/pkgs/applications/graphics/sane/xsane.nix
index 007483fb5e2..cd64c7b8d44 100644
--- a/pkgs/applications/graphics/sane/xsane.nix
+++ b/pkgs/applications/graphics/sane/xsane.nix
@@ -1,6 +1,6 @@
 { lib
 , stdenv
-, fetchurl
+, fetchFromGitLab
 , sane-backends
 , sane-frontends
 , libX11
@@ -10,15 +10,19 @@
 , libusb-compat-0_1
 , gimpSupport ? false
 , gimp
+, nix-update-script
 }:
 
 stdenv.mkDerivation rec {
   pname = "xsane";
   version = "0.999";
 
-  src = fetchurl {
-    url = "http://www.xsane.org/download/xsane-${version}.tar.gz";
-    sha256 = "0jrb918sfb9jw3vmrz0z7np4q55hgsqqffpixs0ir5nwcwzd50jp";
+  src = fetchFromGitLab {
+    owner = "frontend";
+    group = "sane-project";
+    repo = pname;
+    rev = version;
+    hash = "sha256-oOg94nUsT9LLKnHocY0S5g02Y9a1UazzZAjpEI/s+yM=";
   };
 
   preConfigure = ''
@@ -31,11 +35,13 @@ stdenv.mkDerivation rec {
   buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ]
     ++ lib.optional gimpSupport gimp;
 
+  passthru.updateScript = nix-update-script { };
+
   meta = with lib; {
     homepage = "http://www.sane-project.org/";
     description = "Graphical scanning frontend for sane";
     license = licenses.gpl2Plus;
     platforms = platforms.linux;
-    maintainers = with maintainers; [ ];
+    maintainers = with maintainers; [ melling ];
   };
 }