From 2e4e65c7ff03a08ae0691453b7e1bc72f3bbbb19 Mon Sep 17 00:00:00 2001 From: montag451 Date: Thu, 25 May 2017 12:28:31 +0200 Subject: [PATCH] simple-scan: fix #26054 (#26085) --- pkgs/applications/graphics/simple-scan/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/graphics/simple-scan/default.nix b/pkgs/applications/graphics/simple-scan/default.nix index 8a24eab2200..0c800ce9859 100644 --- a/pkgs/applications/graphics/simple-scan/default.nix +++ b/pkgs/applications/graphics/simple-scan/default.nix @@ -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;