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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "unstable-2022-08-15";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redcode-labs";
|
|
|
|
repo = "SNOWCRASH";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "32e62f9ff7d3dda9fac8acfc56176f1f2a70d066";
|
|
|
|
hash = "sha256-mURF/VUqygd5bLJdmbwnZq003IXJKn+k8HtS+CxoQJQ=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-WTDE+MYL8CjeNvGHRNiMgBFrydDJWIcG8TYvbQTH/6o=";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
postFixup = lib.optionals (!stdenv.hostPlatform.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
|
|
|
};
|
|
|
|
}
|