about summary refs log tree commit diff
path: root/pkgs/tools/security/freeze/default.nix
blob: 28ef21657009ce3c3fb5ef8a8c4d810839ca9d15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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";
    mainProgram = "freeze";
    homepage = "https://github.com/optiv/Freeze";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}