electron-cash: 2.9.3 -> 2.9.4

Also switch to downloading tarball from official source URL to allows
verification of digital signature.
This commit is contained in:
Robert Helgesson 2017-11-09 23:58:57 +01:00
parent 8ddedacb56
commit ba7c23e622
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, python2Packages }: { stdenv, fetchurl, python2Packages }:
python2Packages.buildPythonApplication rec { python2Packages.buildPythonApplication rec {
version = "2.9.3"; version = "2.9.4";
name = "electron-cash-${version}"; name = "electron-cash-${version}";
src = fetchFromGitHub { src = fetchurl {
owner = "fyookball"; url = "https://electroncash.org/downloads/${version}/win-linux/Electron-Cash-${version}.tar.gz";
repo = "electrum"; # Verified using official SHA-1 and signature from
rev = version; # https://github.com/fyookball/keys-n-hashes
sha256 = "1r39b5ag5fipzgr84pzb53cfm8a4dy53257608754dwr1gfpma3v"; sha256 = "1y8mzwa6bb8zj4l92wm4c2icnr42wmhbfz6z5ymh356gwll914vh";
}; };
propagatedBuildInputs = with python2Packages; [ propagatedBuildInputs = with python2Packages; [
@ -42,8 +42,8 @@ python2Packages.buildPythonApplication rec {
mv $out/lib/python2.7/site-packages/nix/store"/"*/share $out mv $out/lib/python2.7/site-packages/nix/store"/"*/share $out
rm -rf $out/lib/python2.7/site-packages/nix rm -rf $out/lib/python2.7/site-packages/nix
substituteInPlace $out/share/applications/electron.desktop \ substituteInPlace $out/share/applications/electron-cash.desktop \
--replace "Exec=electrum %u" "Exec=$out/bin/electrum %u" --replace "Exec=electron-cash %u" "Exec=$out/bin/electron-cash %u"
''; '';
doInstallCheck = true; doInstallCheck = true;