pam_xdg: init at 0.8.5 (#487757)

This commit is contained in:
Aaron Andersen
2026-02-17 21:25:35 +00:00
committed by GitHub
+37
View File
@@ -0,0 +1,37 @@
{
stdenv,
lib,
fetchurl,
pam,
coreutils,
}:
stdenv.mkDerivation rec {
pname = "pam_xdg";
version = "0.8.5";
src = fetchurl {
url = "https://ftp.sdaoden.eu/pam_xdg-${version}.tar.gz";
sha256 = "sha256-o4Fol6LouBQVLiGMAszEB+zBkBj8C1xMp057AvH3nl4=";
};
buildInputs = [
pam
];
postPatch = ''
substituteInPlace pam_xdg.c \
--replace-fail '"/usr/bin/rm"' '"${coreutils}/bin/rm"'
'';
makeFlags = [
"PREFIX=$(out)"
];
meta = {
homepage = "https://www.sdaoden.eu/code-pam_xdg.html";
description = "PAM module that manages XDG Base Directories";
license = lib.licenses.isc;
platforms = lib.platforms.unix;
maintainers = with lib; [ maintainers.aanderse ];
};
}