mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
37 lines
725 B
Nix
37 lines
725 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";
|
|
mainProgram = "freeze";
|
|
homepage = "https://github.com/optiv/Freeze";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|