lol

garble: fix aarch64 build

authored by

Ivan Babrou and committed by
zowoq
c62662c9 7e2baa21

+11 -1
+11 -1
pkgs/build-support/go/garble.nix
··· 1 - { buildGoModule 1 + { stdenv 2 + , buildGoModule 2 3 , fetchFromGitHub 3 4 , lib 4 5 }: ··· 14 15 }; 15 16 16 17 vendorSha256 = "sha256-x2fk2QmZDK2yjyfYdK7x+sQjvt7tuggmm8ieVjsNKek="; 18 + 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 + ''; 17 27 18 28 meta = { 19 29 description = "Obfuscate Go code by wrapping the Go toolchain";