diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-09-07 01:58:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 01:58:03 +0200 |
commit | 88d4f507421805afa61c3865b9edb33295b14eaf (patch) | |
tree | f6b3d6cca940e39dc619fbf9b9b3920607e8ff8e /pkgs/applications/networking/p2p | |
parent | 79421e1ca74426b6a99795082932f75a508e1c91 (diff) | |
parent | 922e463e3de6a0267a76574e8c5857de86d7f61a (diff) | |
download | nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.tar nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.tar.gz nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.tar.bz2 nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.tar.lz nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.tar.xz nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.tar.zst nixpkgs-88d4f507421805afa61c3865b9edb33295b14eaf.zip |
Merge pull request #249276 from eigengrau/fix-soulseekqt-mktemp-error
soulseekqt: don’t linger in a read-only directory after installing
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r-- | pkgs/applications/networking/p2p/soulseekqt/default.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/applications/networking/p2p/soulseekqt/default.nix b/pkgs/applications/networking/p2p/soulseekqt/default.nix index 3faf7ce6a76..9587bd0a930 100644 --- a/pkgs/applications/networking/p2p/soulseekqt/default.nix +++ b/pkgs/applications/networking/p2p/soulseekqt/default.nix @@ -28,24 +28,20 @@ mkDerivation rec { buildInputs = [ qtmultimedia stdenv.cc.cc ]; installPhase = '' - # directory in /nix/store so readonly - cd $appextracted - - binary="$(readlink AppRun)" + binary="$(realpath ${appextracted}/AppRun)" install -Dm755 $binary -t $out/bin # fixup and install desktop file desktop-file-install --dir $out/share/applications \ --set-key Exec --set-value $binary \ --set-key Comment --set-value "${meta.description}" \ - --set-key Categories --set-value Network default.desktop + --set-key Categories --set-value Network ${appextracted}/default.desktop mv $out/share/applications/default.desktop $out/share/applications/SoulseekQt.desktop - #TODO: write generic code to read icon path from $binary.desktop - icon="$(readlink .DirIcon)" + icon="$(realpath ${appextracted}/.DirIcon)" for size in 16 32 48 64 72 96 128 192 256 512 1024; do mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps - convert -resize "$size"x"$size" $icon $out/share/icons/hicolor/"$size"x"$size"/apps/$icon + convert -resize "$size"x"$size" $icon $out/share/icons/hicolor/"$size"x"$size"/apps/$(basename $icon) done ''; |