lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #249276 from eigengrau/fix-soulseekqt-mktemp-error

soulseekqt: don’t linger in a read-only directory after installing

authored by

Weijia Wang and committed by
GitHub
88d4f507 79421e1c

+4 -8
+4 -8
pkgs/applications/networking/p2p/soulseekqt/default.nix
··· 28 28 buildInputs = [ qtmultimedia stdenv.cc.cc ]; 29 29 30 30 installPhase = '' 31 - # directory in /nix/store so readonly 32 - cd $appextracted 33 - 34 - binary="$(readlink AppRun)" 31 + binary="$(realpath ${appextracted}/AppRun)" 35 32 install -Dm755 $binary -t $out/bin 36 33 37 34 # fixup and install desktop file 38 35 desktop-file-install --dir $out/share/applications \ 39 36 --set-key Exec --set-value $binary \ 40 37 --set-key Comment --set-value "${meta.description}" \ 41 - --set-key Categories --set-value Network default.desktop 38 + --set-key Categories --set-value Network ${appextracted}/default.desktop 42 39 mv $out/share/applications/default.desktop $out/share/applications/SoulseekQt.desktop 43 - 44 40 #TODO: write generic code to read icon path from $binary.desktop 45 - icon="$(readlink .DirIcon)" 41 + icon="$(realpath ${appextracted}/.DirIcon)" 46 42 for size in 16 32 48 64 72 96 128 192 256 512 1024; do 47 43 mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps 48 - convert -resize "$size"x"$size" $icon $out/share/icons/hicolor/"$size"x"$size"/apps/$icon 44 + convert -resize "$size"x"$size" $icon $out/share/icons/hicolor/"$size"x"$size"/apps/$(basename $icon) 49 45 done 50 46 ''; 51 47