garble: 20200107 -> 0.5.1, switch to go_1_17

This was pretty straightforward, note that go1.17 is explicitly required
by v0.5.1, and one of the tests requires git, so I added it to the
checkInputs.

Also the tests now pass and don't need the mangle, so I removed the
patch. I left the darwin/aarch64 patch in.
This commit is contained in:
Colin 2022-01-29 16:42:46 -05:00 committed by GitHub
parent bb80dd220b
commit 66d547dec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View file

@ -2,25 +2,25 @@
, buildGoModule
, fetchFromGitHub
, lib
, git
}:
buildGoModule rec {
pname = "garble";
version = "20200107";
version = "0.5.1";
src = fetchFromGitHub {
owner = "burrowers";
repo = pname;
rev = "835f4aadf321521acf06aac4d5068473dc4b2ac1";
sha256 = "sha256-NodsVHRll2YZoxrhmniJvelQOStG82u3kJyc0t8OXD8=";
rev = "v${version}";
sha256 = "sha256-F8O/33o//yGnum9sZo1dzcvf3ifRalva6SDC36iPbDA==";
};
vendorSha256 = "sha256-x2fk2QmZDK2yjyfYdK7x+sQjvt7tuggmm8ieVjsNKek=";
vendorSha256 = "sha256-iNH/iBEOTkIhVlDGfI66ZYyVjyH6WrLbUSMyONPjUc4=";
preBuild = ''
# https://github.com/burrowers/garble/issues/184
substituteInPlace testdata/scripts/tiny.txt \
--replace "{6,8}" "{4,8}"
'' + lib.optionalString (!stdenv.isx86_64) ''
# Used for some of the tests.
checkInputs = [git];
preBuild = lib.optionalString (!stdenv.isx86_64) ''
# The test assumex amd64 assembly
rm testdata/scripts/asm.txt
'';

View file

@ -16566,8 +16566,7 @@ with pkgs;
ganv = callPackage ../development/libraries/ganv { };
garble = callPackage ../build-support/go/garble.nix {
# https://github.com/burrowers/garble/issues/124
buildGoModule = buildGo115Module;
buildGoModule = buildGo117Module;
};
gcab = callPackage ../development/libraries/gcab { };