diff options
author | Ivan Babrou <github@ivan.computer> | 2021-02-19 17:45:04 -0800 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-02-20 21:13:46 +1000 |
commit | c62662c962ef4e5aa392896c611cf5e1ce683f68 (patch) | |
tree | 5cca729a56550ebd11f19236cc2ec0b2e045be29 /pkgs/build-support | |
parent | 7e2baa21b58edddead00db1bb2118d50948bed93 (diff) | |
download | nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.tar nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.tar.gz nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.tar.bz2 nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.tar.lz nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.tar.xz nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.tar.zst nixlib-c62662c962ef4e5aa392896c611cf5e1ce683f68.zip |
garble: fix aarch64 build
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/go/garble.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/build-support/go/garble.nix b/pkgs/build-support/go/garble.nix index 27277d1b9925..da1e3152ba4c 100644 --- a/pkgs/build-support/go/garble.nix +++ b/pkgs/build-support/go/garble.nix @@ -1,4 +1,5 @@ -{ buildGoModule +{ stdenv +, buildGoModule , fetchFromGitHub , lib }: @@ -15,6 +16,15 @@ buildGoModule rec { vendorSha256 = "sha256-x2fk2QmZDK2yjyfYdK7x+sQjvt7tuggmm8ieVjsNKek="; + preBuild = '' + # https://github.com/burrowers/garble/issues/184 + substituteInPlace testdata/scripts/tiny.txt \ + --replace "{6,8}" "{4,8}" + '' + lib.optionalString (!stdenv.isx86_64) '' + # The test assumex amd64 assembly + rm testdata/scripts/asm.txt + ''; + meta = { description = "Obfuscate Go code by wrapping the Go toolchain"; homepage = "https://github.com/burrowers/garble/"; |