2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, gnused, libgcrypt, zlib, bzip2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-22 07:53:02 +00:00
|
|
|
pname = "munge";
|
|
|
|
version = "0.5.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dun";
|
|
|
|
repo = "munge";
|
2021-08-22 07:53:02 +00:00
|
|
|
rev = "${pname}-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''
|
|
|
|
An authentication service for creating and validating credentials
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.rickynils ];
|
|
|
|
};
|
|
|
|
}
|