at 23.11-beta 36 lines 979 B view raw
1{ lib, stdenv, fetchurl, autoreconfHook, pam }: 2 3stdenv.mkDerivation rec { 4 pname = "pam_tmpdir"; 5 version = "0.09"; 6 7 src = fetchurl { 8 url = "http://deb.debian.org/debian/pool/main/p/pam-tmpdir/pam-tmpdir_${version}.tar.gz"; 9 hash = "sha256-MXa1CY6alD83E/Q+MJmsv8NaImWd0pPJKZd/7nbe4J8="; 10 }; 11 12 postPatch = '' 13 substituteInPlace pam_tmpdir.c \ 14 --replace /sbin/pam-tmpdir-helper $out/sbin/pam-tmpdir-helper 15 16 # chmod/chown fails on files in /nix/store 17 sed -i -E -e '/^\s*(chmod|chown)/d' Makefile.{am,in} 18 19 # the symlinks in m4 assume FHS 20 rm -rf m4 21 ''; 22 23 nativeBuildInputs = [ autoreconfHook ]; 24 25 buildInputs = [ pam ]; 26 27 enableParallelBuilding = true; 28 29 meta = with lib; { 30 homepage = "https://tracker.debian.org/pkg/pam-tmpdir"; 31 description = "PAM module for creating safe per-user temporary directories"; 32 license = licenses.gpl2Only; 33 maintainers = with maintainers; [ peterhoeg ]; 34 platforms = platforms.linux; 35 }; 36}