mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
chromium: fixup share/share
Reported on https://github.com/NixOS/nixpkgs/issues/11501#issuecomment-164383204
This commit is contained in:
parent
069120110d
commit
f86392bfbe
1 changed files with 6 additions and 3 deletions
|
@ -74,9 +74,8 @@ in stdenv.mkDerivation {
|
||||||
browserBinary = "${chromium.browser}/libexec/chromium/chromium";
|
browserBinary = "${chromium.browser}/libexec/chromium/chromium";
|
||||||
getWrapperFlags = plugin: "$(< \"${plugin}/nix-support/wrapper-flags\")";
|
getWrapperFlags = plugin: "$(< \"${plugin}/nix-support/wrapper-flags\")";
|
||||||
in with stdenv.lib; ''
|
in with stdenv.lib; ''
|
||||||
mkdir -p "$out/bin" "$out/share/applications"
|
mkdir -p "$out/bin"
|
||||||
|
|
||||||
ln -s "${chromium.browser}/share" "$out/share"
|
|
||||||
eval makeWrapper "${browserBinary}" "$out/bin/chromium" \
|
eval makeWrapper "${browserBinary}" "$out/bin/chromium" \
|
||||||
${concatMapStringsSep " " getWrapperFlags chromium.plugins.enabled}
|
${concatMapStringsSep " " getWrapperFlags chromium.plugins.enabled}
|
||||||
|
|
||||||
|
@ -100,7 +99,11 @@ in stdenv.mkDerivation {
|
||||||
ln -sv "${chromium.browser.sandbox}" "$sandbox"
|
ln -sv "${chromium.browser.sandbox}" "$sandbox"
|
||||||
|
|
||||||
ln -s "$out/bin/chromium" "$out/bin/chromium-browser"
|
ln -s "$out/bin/chromium" "$out/bin/chromium-browser"
|
||||||
ln -s "${chromium.browser}/share/icons" "$out/share/icons"
|
|
||||||
|
mkdir -p "$out/share/applications"
|
||||||
|
for f in '${chromium.browser}'/share/*; do
|
||||||
|
ln -s -t "$out/share/" "$f"
|
||||||
|
done
|
||||||
cp -v "${desktopItem}/share/applications/"* "$out/share/applications"
|
cp -v "${desktopItem}/share/applications/"* "$out/share/applications"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue