git.iko.soy/typeable/nixpkgs
on master help sign in
simple-scan: fix #26054 (#26085)
commit2e4e65c7ff03a08ae0691453b7e1bc72f3bbbb19 authormontag451 <montag451@laposte.net> dateThu 25 May 2017, 12:28 (10 years ago) parent3a18388
1 file changed+11
pkgs/applications/graphics/simple-scan/default.nix+11
pkgs/applications/graphics/simple-scan/default.nix+11
@@ -29,6 +29,17 @@ stdenv.mkDerivation rec {
2929 postInstall = ''
3030 mkdir -p $out/share/icons
3131 mv $out/share/simple-scan/icons/* $out/share/icons/
32+ (
33+ cd ${gnome3.defaultIconTheme}/share/icons/Adwaita
34+ for f in `find . | grep 'scanner\.'`
35+ do
36+ local outFile="`echo "$out/share/icons/hicolor/$f" | sed \
37+ -e 's#/devices/#/apps/#g' \
38+ -e 's#scanner\.#simple-scan\.#g'`"
39+ mkdir -p "`realpath -m "$outFile/.."`"
40+ cp "$f" "$outFile"
41+ done
42+ )
3243 '';
3344
3445 enableParallelBuilding = true;