diff options
author | RoGreat <roguegreat@gmail.com> | 2024-04-10 23:05:00 -0500 |
---|---|---|
committer | RoGreat <roguegreat@gmail.com> | 2024-04-10 23:15:23 -0500 |
commit | 1c9801b1c18c42af0955b8467265ebeb7742cb77 (patch) | |
tree | e0a7c7364ac6c5c78ba7f9b1f306e7c85f20717d /pkgs/applications/video | |
parent | 9306e3cc87e0bcf686ededc6060add6d3245cca2 (diff) |
streamlink-twitch-gui-bin: icons
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/streamlink-twitch-gui/bin.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/video/streamlink-twitch-gui/bin.nix b/pkgs/applications/video/streamlink-twitch-gui/bin.nix index ac74ed748f41c..f425f50b249e4 100644 --- a/pkgs/applications/video/streamlink-twitch-gui/bin.nix +++ b/pkgs/applications/video/streamlink-twitch-gui/bin.nix @@ -92,8 +92,13 @@ stdenv.mkDerivation rec { # Install all files, remove unnecessary ones cp -a . $out/opt/${basename}/ rm -r $out/opt/${basename}/{{add,remove}-menuitem.sh,credits.html,icons/} - ln -s "$out/opt/${basename}/${basename}" $out/bin/ - cp -r "${desktopItem}/share/applications" $out/share/ + ln -s $out/opt/${basename}/${basename} $out/bin/ + for res in 16 32 48 64 128 256; do + install -Dm644 \ + icons/icon-"$res".png \ + $out/share/icons/hicolor/"$res"x"$res"/apps/${basename}.png + done + ln -s $desktopItem/share/applications $out/share/ runHook postInstall ''; |