2021-05-25 23:55:34 +02:00
|
|
|
{ lib
|
2022-01-01 05:22:24 +01:00
|
|
|
, stdenv
|
2021-05-25 23:55:34 +02:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "snowcrash";
|
2023-07-01 11:37:58 +02:00
|
|
|
version = "unstable-2022-08-15";
|
2021-05-25 23:55:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redcode-labs";
|
|
|
|
repo = "SNOWCRASH";
|
2023-07-01 11:37:58 +02:00
|
|
|
rev = "32e62f9ff7d3dda9fac8acfc56176f1f2a70d066";
|
|
|
|
hash = "sha256-mURF/VUqygd5bLJdmbwnZq003IXJKn+k8HtS+CxoQJQ=";
|
2021-05-25 23:55:34 +02:00
|
|
|
};
|
|
|
|
|
2023-07-01 11:37:58 +02:00
|
|
|
vendorHash = "sha256-WTDE+MYL8CjeNvGHRNiMgBFrydDJWIcG8TYvbQTH/6o=";
|
2021-05-25 23:55:34 +02:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2022-01-01 05:22:24 +01:00
|
|
|
postFixup = lib.optionals (!stdenv.isDarwin) ''
|
2021-05-25 23:55:34 +02: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-18 14:07:49 +01:00
|
|
|
maintainers = with maintainers; [ fab ] ++ teams.redcodelabs.members;
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "SNOWCRASH";
|
2021-05-25 23:55:34 +02:00
|
|
|
};
|
|
|
|
}
|