depot/third_party/nixpkgs/pkgs/tools/security/freeze/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

35 lines
697 B
Nix

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "freeze";
version = "1.3";
src = fetchFromGitHub {
owner = "optiv";
repo = "Freeze";
rev = "v${version}";
hash = "sha256-BE5MvCU+NfEccauOdWNty/FwMiWwLttPh7eE9+UzEMY=";
};
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 ];
};
}