@@ -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/";