depot/third_party/nixpkgs/pkgs/tools/security/munge/default.nix
Default email 619d6dcc77 Project import generated by Copybara.
GitOrigin-RevId: 870959c7fb3a42af1863bed9e1756086a74eb649
2021-08-22 09:53:02 +02:00

34 lines
876 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, gnused, libgcrypt, zlib, bzip2 }:
stdenv.mkDerivation rec {
pname = "munge";
version = "0.5.14";
src = fetchFromGitHub {
owner = "dun";
repo = "munge";
rev = "${pname}-${version}";
sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j";
};
nativeBuildInputs = [ autoreconfHook gawk gnused ];
buildInputs = [ libgcrypt zlib bzip2 ];
preAutoreconf = ''
# Remove the install-data stuff, since it tries to write to /var
substituteInPlace src/Makefile.am --replace "etc \\" "\\"
'';
configureFlags = [
"--localstatedir=/var"
];
meta = with lib; {
description = ''
An authentication service for creating and validating credentials
'';
license = licenses.lgpl3;
platforms = platforms.unix;
maintainers = [ maintainers.rickynils ];
};
}