1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 16:11:58 +00:00
nixpkgs/pkgs/tools/security/munge/default.nix
Mitch Tishmack a1ca4985e3 Munge is buildable/usable on osx.
Also update the url to point to the migrated from google code url to
github.
2015-11-22 19:01:44 -06:00

32 lines
746 B
Nix

{ stdenv, fetchFromGitHub, gnused, perl, libgcrypt, zlib, bzip2 }:
stdenv.mkDerivation rec {
name = "munge-0.5.11";
src = fetchFromGitHub {
owner = "dun";
repo = "munge";
rev = "${name}";
sha256 = "02847p742nq3cb8ayf5blrdicybq72nfsnggqkxr33cpppmsfwg9";
};
buildInputs = [ gnused perl libgcrypt zlib bzip2 ];
preConfigure = ''
# Remove the install-data stuff, since it tries to write to /var
sed -i '505,511d' src/etc/Makefile.in
'';
configureFlags = [
"--localstatedir=/var"
];
meta = {
description = ''
An authentication service for creating and validating credentials
'';
maintainers = [ stdenv.lib.maintainers.rickynils ];
platforms = stdenv.lib.platforms.unix;
};
}