nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 33 lines 843 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, gnused, libgcrypt, zlib, bzip2 }: 2 3stdenv.mkDerivation rec { 4 name = "munge-0.5.14"; 5 6 src = fetchFromGitHub { 7 owner = "dun"; 8 repo = "munge"; 9 rev = name; 10 sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j"; 11 }; 12 13 nativeBuildInputs = [ autoreconfHook gawk gnused ]; 14 buildInputs = [ libgcrypt zlib bzip2 ]; 15 16 preAutoreconf = '' 17 # Remove the install-data stuff, since it tries to write to /var 18 substituteInPlace src/Makefile.am --replace "etc \\" "\\" 19 ''; 20 21 configureFlags = [ 22 "--localstatedir=/var" 23 ]; 24 25 meta = with lib; { 26 description = '' 27 An authentication service for creating and validating credentials 28 ''; 29 license = licenses.lgpl3; 30 platforms = platforms.unix; 31 maintainers = [ maintainers.rickynils ]; 32 }; 33}