3
0
Fork 0
forked from mirrors/nixpkgs

electrum: fixup Exec lines in .desktop

Not sure why upstream added $HOME/.local/bin to $PATH for these,
but IMO that is for users to handle as they see fit.

And it's not very nix-like :).
This commit is contained in:
Will Dietz 2019-05-09 15:24:21 -05:00
parent 9cae933ce7
commit a879c72552
No known key found for this signature in database
GPG key ID: EBB0EA4124809D02

View file

@ -62,7 +62,10 @@ python3Packages.buildPythonApplication rec {
rm -rf $out/${python3.sitePackages}/nix
substituteInPlace $out/share/applications/electrum.desktop \
--replace "Exec=electrum %u" "Exec=$out/bin/electrum %u"
--replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum %u"' \
"Exec=$out/bin/electrum %u" \
--replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"' \
"Exec=$out/bin/electrum --testnet %u"
'';
checkInputs = with python3Packages; [ pytest ];