2015-10-28 16:22:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gnused, perl, libgcrypt, zlib, bzip2 }:
|
2013-04-22 15:04:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-20 16:06:34 +01:00
|
|
|
name = "munge-0.5.11";
|
2013-04-22 15:04:41 +01:00
|
|
|
|
2015-10-28 16:22:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dun";
|
|
|
|
repo = "munge";
|
|
|
|
rev = "${name}";
|
|
|
|
sha256 = "02847p742nq3cb8ayf5blrdicybq72nfsnggqkxr33cpppmsfwg9";
|
2013-04-22 15:04:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gnused perl libgcrypt zlib bzip2 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Remove the install-data stuff, since it tries to write to /var
|
2014-08-20 16:06:34 +01:00
|
|
|
sed -i '505,511d' src/etc/Makefile.in
|
2013-04-22 15:04:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
An authentication service for creating and validating credentials
|
|
|
|
'';
|
|
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
2015-10-28 16:22:40 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-04-22 15:04:41 +01:00
|
|
|
};
|
|
|
|
}
|