nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildGoModule,
5 fetchFromGitHub,
6}:
7
8buildGoModule rec {
9 pname = "freeze";
10 version = "1.3";
11
12 src = fetchFromGitHub {
13 owner = "optiv";
14 repo = "Freeze";
15 rev = "v${version}";
16 hash = "sha256-BE5MvCU+NfEccauOdWNty/FwMiWwLttPh7eE9+UzEMY=";
17 };
18
19 vendorHash = "sha256-R8kdFweMhAUjJ8zJ7HdF5+/vllbNmARdhU4hOw4etZo=";
20
21 ldflags = [
22 "-s"
23 "-w"
24 ];
25
26 postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
27 mv $out/bin/Freeze $out/bin/freeze
28 '';
29
30 meta = {
31 description = "Payload toolkit for bypassing EDRs";
32 mainProgram = "freeze";
33 homepage = "https://github.com/optiv/Freeze";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}