11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = "munge-${finalAttrs.version}";
19 sha256 = "sha256-fv42RMUAP8Os33/iHXr70i5Pt2JWZK71DN5vFI3q7Ak=";
24 libgcrypt # provides libgcrypt.m4
36 # Load data from proper global paths
37 "--localstatedir=/var"
40 "--with-sysconfigdir=/etc/default"
42 # Install data to proper directories
43 "--with-pkgconfigdir=${placeholder "out"}/lib/pkgconfig"
44 "--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
46 # Cross-compilation hacks
47 "--with-libgcrypt-prefix=${lib.getDev libgcrypt}"
48 # workaround for cross compilation: https://github.com/dun/munge/issues/103
49 "ac_cv_file__dev_spx=no"
50 "x_ac_cv_check_fifo_recvfd=no"
54 "localstatedir=${placeholder "out"}/var"
55 "runstatedir=${placeholder "out"}/run"
56 "sysconfdir=${placeholder "out"}/etc"
57 "sysconfigdir=${placeholder "out"}/etc/default"
61 # rmdir will notify us if anything new is installed to the directories.
62 rmdir "$out"/{var{/{lib,log}{/munge,},},etc/munge}
67 An authentication service for creating and validating credentials
75 platforms = platforms.unix;
76 maintainers = [ maintainers.rickynils ];