From bdeee9bcc4b34de7d6592738d86bc1cfd79bd8a9 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 26 May 2013 20:44:31 +0200 Subject: [PATCH] chromium: Fix installing logo images. Actually a "*[0-9]" wildcard isn't enough for some unrelated icons to slip into the derivation output, so let's explicitely check again within the for loop. Signed-off-by: aszlig --- pkgs/applications/networking/browsers/chromium/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index 5be67c888d9c..33140c481f47 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -206,6 +206,7 @@ in stdenv.mkDerivation rec { for icon_file in chrome/app/theme/chromium/product_logo_*[0-9].png; do num_and_suffix="''${icon_file##*logo_}" icon_size="''${num_and_suffix%.*}" + expr "$icon_size" : "^[0-9][0-9]*$" || continue logo_output_prefix="$out/share/icons/hicolor" logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps" mkdir -vp "$logo_output_path"