xsane: fix src location

Get src from GitLab as the tarball is no longer available from xsane.org. Add
passthru update script and myself as maintainer.

+11 -5
+11 -5
pkgs/applications/graphics/sane/xsane.nix
··· 1 1 { lib 2 2 , stdenv 3 - , fetchurl 3 + , fetchFromGitLab 4 4 , sane-backends 5 5 , sane-frontends 6 6 , libX11 ··· 10 10 , libusb-compat-0_1 11 11 , gimpSupport ? false 12 12 , gimp 13 + , nix-update-script 13 14 }: 14 15 15 16 stdenv.mkDerivation rec { 16 17 pname = "xsane"; 17 18 version = "0.999"; 18 19 19 - src = fetchurl { 20 - url = "http://www.xsane.org/download/xsane-${version}.tar.gz"; 21 - sha256 = "0jrb918sfb9jw3vmrz0z7np4q55hgsqqffpixs0ir5nwcwzd50jp"; 20 + src = fetchFromGitLab { 21 + owner = "frontend"; 22 + group = "sane-project"; 23 + repo = pname; 24 + rev = version; 25 + hash = "sha256-oOg94nUsT9LLKnHocY0S5g02Y9a1UazzZAjpEI/s+yM="; 22 26 }; 23 27 24 28 preConfigure = '' ··· 31 35 buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ] 32 36 ++ lib.optional gimpSupport gimp; 33 37 38 + passthru.updateScript = nix-update-script { }; 39 + 34 40 meta = with lib; { 35 41 homepage = "http://www.sane-project.org/"; 36 42 description = "Graphical scanning frontend for sane"; 37 43 license = licenses.gpl2Plus; 38 44 platforms = platforms.linux; 39 - maintainers = with maintainers; [ ]; 45 + maintainers = with maintainers; [ melling ]; 40 46 }; 41 47 }