diff options
author | Neil Mayhew <neil@neil.mayhew.name> | 2017-02-07 11:07:48 -0700 |
---|---|---|
committer | Neil Mayhew <neil@neil.mayhew.name> | 2017-02-07 11:09:25 -0700 |
commit | af09e72d52d9b9918f7b2e2397181f87d0e148fd (patch) | |
tree | 37f488f63eef3be0551370177b4dcdb15893f4ce /pkgs/applications/networking | |
parent | 3aff6c07ab2909ba5006d3258d99cb105a45a17b (diff) | |
download | nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.tar nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.tar.gz nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.tar.bz2 nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.tar.lz nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.tar.xz nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.tar.zst nixlib-af09e72d52d9b9918f7b2e2397181f87d0e148fd.zip |
spideroak: enable it to appear in the application menus
Put files in $out/share instead of $out/usr/share
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/spideroak/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/spideroak/default.nix b/pkgs/applications/networking/spideroak/default.nix index 23c226b9f8a5..bcdc3cd8342b 100644 --- a/pkgs/applications/networking/spideroak/default.nix +++ b/pkgs/applications/networking/spideroak/default.nix @@ -40,6 +40,8 @@ in stdenv.mkDerivation { cp -r "./"* "$out" mkdir "$out/bin" rm "$out/usr/bin/SpiderOakONE" + rmdir $out/usr/bin || true + mv $out/usr/share $out/ patchelf --set-interpreter ${stdenv.glibc.out}/lib/${interpreter} \ "$out/opt/SpiderOakONE/lib/SpiderOakONE" @@ -48,6 +50,8 @@ in stdenv.mkDerivation { makeWrapper $out/opt/SpiderOakONE/lib/SpiderOakONE $out/bin/spideroak --set LD_LIBRARY_PATH $RPATH \ --set QT_PLUGIN_PATH $out/opt/SpiderOakONE/lib/plugins/ \ --set SpiderOak_EXEC_SCRIPT $out/bin/spideroak + + sed -i 's/^Exec=.*/Exec=spideroak/' $out/share/applications/SpiderOakONE.desktop ''; buildInputs = [ patchelf makeWrapper ]; |