diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-06 15:55:14 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-06 15:55:14 +0200 |
commit | 7ea673c3b0f07765901361a6b075a4a3c9decb8d (patch) | |
tree | c28f319c921c60edb8e6806520c4944598e6d345 /pkgs/tools/security/freeze | |
parent | 0198610c3a7bf1f9f318cfb4c820cbe29bdc30e1 (diff) |
freeze: init at 1.1
Diffstat (limited to 'pkgs/tools/security/freeze')
-rw-r--r-- | pkgs/tools/security/freeze/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/security/freeze/default.nix b/pkgs/tools/security/freeze/default.nix new file mode 100644 index 0000000000000..dd6580382339e --- /dev/null +++ b/pkgs/tools/security/freeze/default.nix @@ -0,0 +1,35 @@ +{ 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 ]; + }; +} |