git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19482 from peterhoeg/ss

simple-scan: 3.21 -> 3.22

commit61a789888af50a2afa2c23d21355d42a570e2e8b authorTobias Geerinckx-Rice <nckx@users.noreply.github.com> dateWed 12 Oct 2016, 17:36 (10 years ago) parent8c95f0ff2c3e29
1 file changed+8−18
pkgs/applications/graphics/simple-scan/default.nix+8−18
pkgs/applications/graphics/simple-scan/default.nix+8−18
@@ -1,18 +1,18 @@
11{ stdenv, fetchurl, cairo, colord, glib, gtk3, gusb, intltool, itstool
2−, libusb1, libxml2, pkgconfig, sane-backends, vala_0_23, wrapGAppsHook
2+, libusb1, libxml2, pkgconfig, sane-backends, vala_0_32, wrapGAppsHook
33, gnome3 }:
44
55stdenv.mkDerivation rec {
66 name = "simple-scan-${version}";
7− version = "3.21.1";
7+ version = "${major_version}.0.1";
8+ major_version = "3.22";
89
910 src = fetchurl {
10− sha256 = "00w206isni8m8qd9m8x0644s1gqg11pvgnw6zav33b0bs2h2kk79";
11− url = "https://launchpad.net/simple-scan/3.21/${version}/+download/${name}.tar.xz";
11+ url = "https://launchpad.net/simple-scan/${major_version}/${version}/+download/${name}.tar.xz";
12+ sha256 = "0l1b3llkdlqq0bcjx1cadba67l2zb4zfykdaprpjbjbr6gkbc1f5";
1213 };
1314
14− buildInputs = [ cairo colord glib gusb gtk3 libusb1 libxml2 sane-backends
15− vala_0_23 ];
15+ buildInputs = [ cairo colord glib gnome3.defaultIconTheme gusb gtk3 libusb1 libxml2 sane-backends vala_0_32 ];
1616 nativeBuildInputs = [ intltool itstool pkgconfig wrapGAppsHook ];
1717
1818 configureFlags = [ "--disable-packagekit" ];
@@ -27,18 +27,8 @@ stdenv.mkDerivation rec {
2727 '';
2828
2929 postInstall = ''
30− (
31− cd ${gnome3.defaultIconTheme}/share/icons/Adwaita
32−
33− for f in `find . | grep 'scanner\.'`
34− do
35− local outFile="`echo "$out/share/icons/hicolor/$f" | sed \
36− -e 's#/devices/#/apps/#g' \
37− -e 's#scanner\.#simple-scan\.#g'`"
38− mkdir -p "`realpath -m "$outFile/.."`"
39− cp "$f" "$outFile"
40− done
41− )
30+ mkdir -p $out/share/icons
31+ mv $out/share/simple-scan/icons/* $out/share/icons/
4232 '';
4333
4434 enableParallelBuilding = true;