munge: 0.5.11 -> 0.5.12, fix for Linux

This commit is contained in:
Dmitry Kalinkin 2017-07-13 04:34:56 +03:00
parent eb28340bac
commit fc2819d998
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -1,31 +1,33 @@
{ stdenv, fetchFromGitHub, gnused, perl, libgcrypt, zlib, bzip2 }:
{ stdenv, fetchFromGitHub, autoreconfHook, gawk, gnused, libgcrypt, zlib, bzip2 }:
stdenv.mkDerivation rec {
name = "munge-0.5.11";
name = "munge-0.5.12";
src = fetchFromGitHub {
owner = "dun";
repo = "munge";
rev = "${name}";
sha256 = "02847p742nq3cb8ayf5blrdicybq72nfsnggqkxr33cpppmsfwg9";
sha256 = "1wvkc63bqclpm5xmp3rn199x3jqd99255yicyydgz83cixp7wdbh";
};
buildInputs = [ gnused perl libgcrypt zlib bzip2 ];
nativeBuildInputs = [ autoreconfHook gawk gnused ];
buildInputs = [ libgcrypt zlib bzip2 ];
preConfigure = ''
preAutoreconf = ''
# Remove the install-data stuff, since it tries to write to /var
sed -i '505,511d' src/etc/Makefile.in
substituteInPlace src/Makefile.am --replace "etc \\" "\\"
'';
configureFlags = [
"--localstatedir=/var"
];
meta = {
meta = with stdenv.lib; {
description = ''
An authentication service for creating and validating credentials
'';
maintainers = [ stdenv.lib.maintainers.rickynils ];
platforms = stdenv.lib.platforms.unix;
license = licenses.lgpl3;
platforms = platforms.unix;
maintainers = [ maintainers.rickynils ];
};
}