From a6de94bb437baa2b0de3dd1e91278abb28f916a1 Mon Sep 17 00:00:00 2001 From: Emmanuel Rosa Date: Thu, 6 Apr 2023 11:16:15 -0400 Subject: [PATCH 1/2] sparrow-unwrapped: fix update script --- pkgs/applications/blockchains/sparrow/default.nix | 3 ++- pkgs/applications/blockchains/sparrow/update.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/blockchains/sparrow/default.nix b/pkgs/applications/blockchains/sparrow/default.nix index d7f1963a3c89..5200a34c04f3 100644 --- a/pkgs/applications/blockchains/sparrow/default.nix +++ b/pkgs/applications/blockchains/sparrow/default.nix @@ -158,7 +158,8 @@ let }; in stdenv.mkDerivation rec { - inherit pname version src; + inherit version src; + pname = "sparrow-unwrapped"; nativeBuildInputs = [ makeWrapper copyDesktopItems ]; desktopItems = [ diff --git a/pkgs/applications/blockchains/sparrow/update.sh b/pkgs/applications/blockchains/sparrow/update.sh index bda8b0765aed..7a520b351aa4 100755 --- a/pkgs/applications/blockchains/sparrow/update.sh +++ b/pkgs/applications/blockchains/sparrow/update.sh @@ -23,4 +23,4 @@ sha256sum -c --ignore-missing manifest.txt sha256=$(nix-prefetch-url --type sha256 "file://$PWD/$depname") popd -update-source-version sparrow "$version" "$sha256" +update-source-version sparrow-unwrapped "$version" "$sha256" From 140437c1298ddd0baaaa09a1363be5e1410af307 Mon Sep 17 00:00:00 2001 From: Emmanuel Rosa Date: Thu, 6 Apr 2023 11:21:35 -0400 Subject: [PATCH 2/2] sparrow: 1.7.3 -> 1.7.4 --- pkgs/applications/blockchains/sparrow/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/blockchains/sparrow/default.nix b/pkgs/applications/blockchains/sparrow/default.nix index 5200a34c04f3..18f11af30e46 100644 --- a/pkgs/applications/blockchains/sparrow/default.nix +++ b/pkgs/applications/blockchains/sparrow/default.nix @@ -16,15 +16,16 @@ , openimajgrabber , hwi , imagemagick +, gzip }: let pname = "sparrow"; - version = "1.7.3"; + version = "1.7.4"; src = fetchurl { url = "https://github.com/sparrowwallet/${pname}/releases/download/${version}/${pname}-${version}-x86_64.tar.gz"; - sha256 = "sha256-/tKct73v0zWAjY4kTllnb/+SB/8ENgVl8Yh/LErKTxY="; + sha256 = "08ircrc93gsf3vgqn07gjwmy4bs3jds9rg184pihyymm7g9girfb"; }; launcher = writeScript "sparrow" '' @@ -93,7 +94,7 @@ let sparrow-modules = stdenv.mkDerivation { pname = "sparrow-modules"; inherit version src; - nativeBuildInputs = [ makeWrapper gnugrep openjdk autoPatchelfHook stdenv.cc.cc.lib zlib ]; + nativeBuildInputs = [ makeWrapper gzip gnugrep openjdk autoPatchelfHook stdenv.cc.cc.lib zlib ]; buildPhase = '' # Extract Sparrow's JIMAGE and generate a list of them. @@ -143,9 +144,9 @@ let # Replace the embedded Tor binary (which is in a Tar archive) # with one from Nixpkgs. - cp ${torWrapper} ./tor - tar -cJf tor.tar.xz tor - cp tor.tar.xz modules/netlayer.jpms/native/linux/x64/tor.tar.xz + gzip -c ${torWrapper} > tor.gz + cp tor.gz modules/kmp.tor.binary.linuxx64/kmptor/linux/x64/tor.gz + find modules ''; installPhase = ''