garble: fix aarch64 build
This commit is contained in:
parent
7e2baa21b5
commit
c62662c962
@ -1,4 +1,5 @@
|
|||||||
{ buildGoModule
|
{ stdenv
|
||||||
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
}:
|
}:
|
||||||
@ -15,6 +16,15 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "sha256-x2fk2QmZDK2yjyfYdK7x+sQjvt7tuggmm8ieVjsNKek=";
|
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 = {
|
meta = {
|
||||||
description = "Obfuscate Go code by wrapping the Go toolchain";
|
description = "Obfuscate Go code by wrapping the Go toolchain";
|
||||||
homepage = "https://github.com/burrowers/garble/";
|
homepage = "https://github.com/burrowers/garble/";
|
||||||
|
Loading…
Reference in New Issue
Block a user