diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-25 23:55:34 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-25 23:55:34 +0200 |
commit | 7f7262ce0f2c55a1a7ee84e1f080426adb47fe21 (patch) | |
tree | 8a80b2190507274d1453cb8dfee2d7d10d889143 /pkgs/tools/security/snowcrash | |
parent | 563c5037c94cfb5d6e89aff7221ddbffb069eac0 (diff) |
snowcrash: init at unstable-2021-04-29
Diffstat (limited to 'pkgs/tools/security/snowcrash')
-rw-r--r-- | pkgs/tools/security/snowcrash/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/security/snowcrash/default.nix b/pkgs/tools/security/snowcrash/default.nix new file mode 100644 index 0000000000000..cd85ff90bf910 --- /dev/null +++ b/pkgs/tools/security/snowcrash/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "snowcrash"; + version = "unstable-2021-04-29"; + + src = fetchFromGitHub { + owner = "redcode-labs"; + repo = "SNOWCRASH"; + rev = "514cceea1ca82f44e0c8a8744280f3a16abb6745"; + sha256 = "16p1nfi9zdlcffjyrk1phrippjqrdzf3cpc51dgdy3bfr7pds2ld"; + }; + + vendorSha256 = "1xm2yjr4mqkara3yib6vgfj14ldh7r0v1vr2i0ks13l1rm54x840"; + + subPackages = [ "." ]; + + runVend = true; + + postFixup = '' + mv $out/bin/SNOWCRASH $out/bin/${pname} + ''; + + meta = with lib; { + description = "Polyglot payload generator"; + homepage = "https://github.com/redcode-labs/SNOWCRASH"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |