Files
nixos-blueprint/packages/pillager/default.nix
T
2025-05-15 11:13:44 +03:00

34 lines
917 B
Nix

{pkgs}: let
inherit (pkgs) lib buildGoModule fetchFromGitHub;
in
buildGoModule rec {
pname = "pillager";
version = "0.11.6";
src = fetchFromGitHub {
owner = "brittonhayes";
repo = "pillager";
rev = "v${version}";
hash = "sha256-GHjAm6x96m79pnberfYKiUujnlahsVqNixY4I9R7AOc=";
};
vendorHash = "sha256-uNPNUsD1hEvHKGb5EyEjDanc21ro6dm68ecdyG/+hlk=";
ldflags = [
"-s"
"-w"
"-X=github.com/brittonhayes/pillager/internal/commands/version.version=${version}"
"-X=main.commit=${src.rev}"
"-X=main.date=1970-01-01T00:00:00Z"
"-X=main.builtBy=goreleaser"
];
meta = {
description = "Pillage filesystems for sensitive information with Go";
homepage = "https://github.com/brittonhayes/pillager";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [];
mainProgram = "pillager";
};
}