Skip to content

Commit 0e356a8

Browse files
committed
pam_rundir: init at 1.0.0
1 parent 986433d commit 0e356a8

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchurl,
5+
pam,
6+
}:
7+
stdenv.mkDerivation rec {
8+
pname = "pam_rundir";
9+
version = "1.0.0";
10+
11+
src = fetchurl {
12+
url = "https://jjacky.com/pam_rundir/pam_rundir-${version}.tar.gz";
13+
hash = "sha256-x3m2me0jd3o726h7f2ftOV/pV/PJYTj67kX4eie8wCA=";
14+
};
15+
16+
postPatch = ''
17+
substituteInPlace Makefile \
18+
--replace-fail /usr/share/man /share/man
19+
'';
20+
21+
buildInputs = [
22+
pam
23+
];
24+
25+
configureFlags = [
26+
"--securedir=/lib/security"
27+
"--with-parentdir=/run/user"
28+
];
29+
30+
installFlags = [
31+
"DESTDIR=$(out)"
32+
];
33+
34+
meta = {
35+
homepage = "http://jjacky.com/pam_rundir";
36+
description = "Provide user runtime directory on Linux systems";
37+
license = lib.licenses.gpl2Plus;
38+
platforms = lib.platforms.unix;
39+
maintainers = with lib; [ maintainers.aanderse ];
40+
};
41+
}

0 commit comments

Comments
 (0)