tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pam_tmpdir: init at 0.09
Peter Hoeg
3 years ago
c70172f9
990f197b
+38
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
pam_tmpdir
default.nix
top-level
all-packages.nix
+36
pkgs/os-specific/linux/pam_tmpdir/default.nix
···
1
1
+
{ lib, stdenv, fetchurl, autoreconfHook, pam }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
pname = "pam_tmpdir";
5
5
+
version = "0.09";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "http://deb.debian.org/debian/pool/main/p/pam-tmpdir/pam-tmpdir_${version}.tar.gz";
9
9
+
hash = "sha256-MXa1CY6alD83E/Q+MJmsv8NaImWd0pPJKZd/7nbe4J8=";
10
10
+
};
11
11
+
12
12
+
postPatch = ''
13
13
+
substituteInPlace pam_tmpdir.c \
14
14
+
--replace /sbin/pam-tmpdir-helper $out/sbin/pam-tmpdir-helper
15
15
+
16
16
+
# chmod/chown fails on files in /nix/store
17
17
+
sed -i -E -e '/^\s*(chmod|chown)/d' Makefile.{am,in}
18
18
+
19
19
+
# the symlinks in m4 assume FHS
20
20
+
rm -rf m4
21
21
+
'';
22
22
+
23
23
+
nativeBuildInputs = [ autoreconfHook ];
24
24
+
25
25
+
buildInputs = [ pam ];
26
26
+
27
27
+
enableParallelBuilding = true;
28
28
+
29
29
+
meta = with lib; {
30
30
+
homepage = "https://tracker.debian.org/pkg/pam-tmpdir";
31
31
+
description = "PAM module for creating safe per-user temporary directories";
32
32
+
license = licenses.gpl2Only;
33
33
+
maintainers = with maintainers; [ peterhoeg ];
34
34
+
platforms = platforms.linux;
35
35
+
};
36
36
+
}
+2
pkgs/top-level/all-packages.nix
···
23980
23980
23981
23981
pam_ssh_agent_auth = callPackage ../os-specific/linux/pam_ssh_agent_auth { };
23982
23982
23983
23983
+
pam_tmpdir = callPackage ../os-specific/linux/pam_tmpdir { };
23984
23984
+
23983
23985
pam_u2f = callPackage ../os-specific/linux/pam_u2f { };
23984
23986
23985
23987
pam_usb = callPackage ../os-specific/linux/pam_usb { };