depot/third_party/nixpkgs/pkgs/tools/security/freeze/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

35 lines
697 B
Nix

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "freeze";
version = "1.1";
src = fetchFromGitHub {
owner = "optiv";
repo = "Freeze";
rev = "v${version}";
hash = "sha256-ySwd7xs9JdJuBvqKC4jI/qA6qVHbYPPUEG7k6joSkRk=";
};
vendorHash = "sha256-R8kdFweMhAUjJ8zJ7HdF5+/vllbNmARdhU4hOw4etZo=";
ldflags = [
"-s"
"-w"
];
postInstall = lib.optionalString (!stdenv.isDarwin) ''
mv $out/bin/Freeze $out/bin/freeze
'';
meta = with lib; {
description = "Payload toolkit for bypassing EDRs";
homepage = "https://github.com/optiv/Freeze";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}