2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
2022-01-03 16:56:52 +00:00
|
|
|
, stdenv
|
2021-05-28 09:39:13 +00:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "snowcrash";
|
|
|
|
version = "unstable-2021-04-29";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redcode-labs";
|
|
|
|
repo = "SNOWCRASH";
|
|
|
|
rev = "514cceea1ca82f44e0c8a8744280f3a16abb6745";
|
|
|
|
sha256 = "16p1nfi9zdlcffjyrk1phrippjqrdzf3cpc51dgdy3bfr7pds2ld";
|
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
vendorSha256 = "sha256-YryQKLHwUDhR/Z7eWfCdL86Z83GrqBTvdGGj+dGKvjI";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
postFixup = lib.optionals (!stdenv.isDarwin) ''
|
2021-05-28 09:39:13 +00:00
|
|
|
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 ];
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ fab ] ++ teams.redcodelabs.members;
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "SNOWCRASH";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
}
|