nixpkgs/pkgs/tools/security/snowcrash/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
813 B
Nix
Raw Normal View History

2021-05-25 23:55:34 +02:00
{ lib
, stdenv
2021-05-25 23:55:34 +02:00
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "snowcrash";
version = "unstable-2022-08-15";
2021-05-25 23:55:34 +02:00
src = fetchFromGitHub {
owner = "redcode-labs";
repo = "SNOWCRASH";
rev = "32e62f9ff7d3dda9fac8acfc56176f1f2a70d066";
hash = "sha256-mURF/VUqygd5bLJdmbwnZq003IXJKn+k8HtS+CxoQJQ=";
2021-05-25 23:55:34 +02:00
};
vendorHash = "sha256-WTDE+MYL8CjeNvGHRNiMgBFrydDJWIcG8TYvbQTH/6o=";
2021-05-25 23:55:34 +02:00
subPackages = [ "." ];
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;
mainProgram = "SNOWCRASH";
2021-05-25 23:55:34 +02:00
};
}