17 src = fetchFromGitHub {
21 hash = "sha256-FtI5lAeqjRPN47iC46bcEsRLQb7mItw4svsnLkRpNxY=";
24 __darwinAllowLocalNetworking = true;
27 "-buildid=00000000000000000000" # length=20
31 (replaceVars ./0001-Add-version-info.patch {
41 vendorHash = "sha256-mSdajYiMEg2ik0ocfmHK+XddEss1qLu6rDwzjocaaW0=";
43 # Used for some of the tests.
51 export HOME=$(mktemp -d)
52 export WORK=$(mktemp -d)
55 # Several tests fail with
56 # FAIL: testdata/script/goenv.txtar:27: "$WORK/.temp 'quotes' and spaces" matches "garble|importcfg|cache\\.gob|\\.go"
57 doCheck = !stdenv.hostPlatform.isDarwin;
59 nativeInstallCheckInputs = [
62 versionCheckProgramArg = [ "version" ];
63 doInstallCheck = false;
65 passthru.updateScript = nix-update-script { };
68 description = "Obfuscate Go code by wrapping the Go toolchain";
69 homepage = "https://github.com/burrowers/garble/";
70 maintainers = with lib.maintainers; [
74 license = lib.licenses.bsd3;
75 mainProgram = "garble";