Unverified Commit 3a3c669a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

zapper: init at 1.1 (#509514)

parents 5bfd5ad4 1cfa00c9
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  glibc,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "zapper";
  version = "1.1";

  src = fetchFromGitHub {
    owner = "hackerschoice";
    repo = "zapper";
    tag = "v${finalAttrs.version}";
    hash = "sha256-k8tkM3/hRSWwsgLiv9+n06INYpk6tz0hMZtOcOlQfLw=";
  };

  __structuredAttrs = true;

  strictDeps = true;

  buildInputs = [ glibc.static ];

  buildFlags = [ "zapper" ];

  installPhase = ''
    runHook preInstall

    install -Dm755 zapper $out/bin/zapper

    runHook postInstall
  '';

  meta = {
    description = "Zaps arguments and environment from the process list";
    homepage = "https://github.com/hackerschoice/zapper";
    changelog = "https://github.com/hackerschoice/zapper/releases/tag/v${finalAttrs.src.tag}";
    # https://github.com/hackerschoice/zapper/issues/4
    license = lib.licenses.unfree;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "zapper";
    platforms = lib.platforms.all;
  };
})