We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e2e4c commit 9b06980Copy full SHA for 9b06980
1 file changed
pkgs/applications/networking/browsers/google-chrome/default.nix
@@ -119,9 +119,13 @@ in stdenv.mkDerivation {
119
--replace /opt $out/share \
120
--replace $out/share/google/$appname/google-$appname $exe
121
122
- for icon_file in $out/share/google/chrome*/product_logo_*[0-9].png; do
+ for icon_file in $out/share/google/chrome*/product_logo_[0-9]*.png; do
123
num_and_suffix="''${icon_file##*logo_}"
124
- icon_size="''${num_and_suffix%.*}"
+ if [ $dist = "stable" ]; then
125
+ icon_size="''${num_and_suffix%.*}"
126
+ else
127
+ icon_size="''${num_and_suffix%_*}"
128
+ fi
129
logo_output_prefix="$out/share/icons/hicolor"
130
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
131
mkdir -p "$logo_output_path"
0 commit comments