From 5d2ff181706896eadc8653afee077239d81bbf60 Mon Sep 17 00:00:00 2001 From: Yury Shvedov Date: Wed, 21 Feb 2024 08:14:32 +0300 Subject: [PATCH] [nix] Make installation prettier Change-Id: Ic6574df50bf77d95dd193b6d05a2427db92e9fbe --- nix/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index 75462ea..1dad376 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -56,13 +56,11 @@ stdenvNoCC.mkDerivation makeWrapper "${electron}/bin/electron" "$out/bin/yandex-music" \ --add-flags "$out/share/nodejs/yandex-music.asar" - mkdir -p "$out/share/pixmaps" - mkdir -p "$out/share/icons/hicolor/48x48/apps/" - cp ./app/favicon.png "$out/share/icons/hicolor/48x48/apps/yandex-music.png" - ln -s ../icons/hicolor/48x48/apps/yandex-music.png "$out/share/pixmaps" + install -Dm644 "./app/favicon.png" "$out/share/pixmaps/yandex-music.png" + install -Dm644 "./app/favicon.png" "$out/share/icons/hicolor/48x48/apps/yandex-music.png" + install -Dm644 "./app/favicon.svg" "$out/share/icons/hicolor/scalable/apps/yandex-music.svg" - mkdir -p $out/share/applications - cp $desktopItem $out/share/applications/yandex-music.desktop + install -Dm644 "$desktopItem" "$out/share/applications/yandex-music.desktop" ''; meta = {