3
0
Fork 0
forked from mirrors/nixpkgs

simple-scan: fix #26054 (#26085)

This commit is contained in:
montag451 2017-05-25 12:28:31 +02:00 committed by Peter Hoeg
parent 3a183888a4
commit 2e4e65c7ff

View file

@ -29,6 +29,17 @@ stdenv.mkDerivation rec {
postInstall = ''
mkdir -p $out/share/icons
mv $out/share/simple-scan/icons/* $out/share/icons/
(
cd ${gnome3.defaultIconTheme}/share/icons/Adwaita
for f in `find . | grep 'scanner\.'`
do
local outFile="`echo "$out/share/icons/hicolor/$f" | sed \
-e 's#/devices/#/apps/#g' \
-e 's#scanner\.#simple-scan\.#g'`"
mkdir -p "`realpath -m "$outFile/.."`"
cp "$f" "$outFile"
done
)
'';
enableParallelBuilding = true;