3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/munge/default.nix

34 lines
850 B
Nix
Raw Normal View History

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