git.iko.soy/typeable/nixpkgs
on master help sign in
garble: fix aarch64 build
commitc62662c962ef4e5aa392896c611cf5e1ce683f68 authorIvan Babrou <github@ivan.computer> dateFri 19 Feb 2021, 17:45 (6 years ago) parent7e2baa2
1 file changed+11−1
pkgs/build-support/go/garble.nix+11−1
pkgs/build-support/go/garble.nix+11−1
@@ -1,4 +1,5 @@
1−{ buildGoModule
1+{ stdenv
2+, buildGoModule
23, fetchFromGitHub
34, lib
45}:
@@ -15,6 +16,15 @@ buildGoModule rec {
1516
1617 vendorSha256 = "sha256-x2fk2QmZDK2yjyfYdK7x+sQjvt7tuggmm8ieVjsNKek=";
1718
19+ preBuild = ''
20+ # https://github.com/burrowers/garble/issues/184
21+ substituteInPlace testdata/scripts/tiny.txt \
22+ --replace "{6,8}" "{4,8}"
23+ '' + lib.optionalString (!stdenv.isx86_64) ''
24+ # The test assumex amd64 assembly
25+ rm testdata/scripts/asm.txt
26+ '';
27+
1828 meta = {
1929 description = "Obfuscate Go code by wrapping the Go toolchain";
2030 homepage = "https://github.com/burrowers/garble/";