summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authornyanloutre <paul@nyanlout.re>2018-07-03 14:16:02 +0200
committernyanloutre <paul@nyanlout.re>2018-09-23 18:44:21 +0200
commitc5af608dd2bcc3a7c8e13785c3a0968993099dee (patch)
tree0f3b4ed4f9d93977fe44349be86b755e8c3d1c7f /pkgs/applications
parent243cdbf24e27985c78d5bcec482bf938e514e693 (diff)
downloadnixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.tar
nixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.tar.gz
nixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.tar.bz2
nixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.tar.lz
nixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.tar.xz
nixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.tar.zst
nixpkgs-c5af608dd2bcc3a7c8e13785c3a0968993099dee.zip
electron-cash: 3.1.6 -> 3.3
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/electron-cash/default.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/applications/misc/electron-cash/default.nix b/pkgs/applications/misc/electron-cash/default.nix
index 891222a0f10..64a284cd0ed 100644
--- a/pkgs/applications/misc/electron-cash/default.nix
+++ b/pkgs/applications/misc/electron-cash/default.nix
@@ -7,14 +7,14 @@ let
 in
 
 python3Packages.buildPythonApplication rec {
-  version = "3.1.6";
+  version = "3.3";
   name = "electron-cash-${version}";
 
   src = fetchurl {
     url = "https://electroncash.org/downloads/${version}/win-linux/ElectronCash-${version}.tar.gz";
     # Verified using official SHA-1 and signature from
     # https://github.com/fyookball/keys-n-hashes
-    sha256 = "062k5iw0jcp10zxrffvgiyfg51c5xzs7gmm638icx01yy67d58dm";
+    sha256 = "1x487hyacdm1qhik1mhfimr4jwcwz7sgsbkh11awrb6j19sxdxym";
   };
 
   propagatedBuildInputs = with python3Packages; [
@@ -42,7 +42,6 @@ python3Packages.buildPythonApplication rec {
   '';
 
   preBuild = ''
-    sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
     pyrcc5 icons.qrc -o gui/qt/icons_rc.py
     # Recording the creation timestamps introduces indeterminism to the build
     sed -i '/Created: .*/d' gui/qt/icons_rc.py
@@ -51,10 +50,9 @@ python3Packages.buildPythonApplication rec {
   doCheck = false;
 
   postInstall = ''
-    # Despite setting usr_share above, these files are installed under
-    # $out/nix ...
-    mv $out/${python.sitePackages}/nix/store"/"*/share $out
-    rm -rf $out/${python.sitePackages}/nix
+    # These files are installed under $out/homeless-shelter ...
+    mv $out/${python.sitePackages}/homeless-shelter/.local/share $out
+    rm -rf $out/${python.sitePackages}/homeless-shelter
 
     substituteInPlace $out/share/applications/electron-cash.desktop \
       --replace "Exec=electron-cash %u" "Exec=$out/bin/electron-cash %u"