diff --git a/pkgs/by-name/pa/pam_xdg/package.nix b/pkgs/by-name/pa/pam_xdg/package.nix new file mode 100644 index 000000000000..f701edfc67d7 --- /dev/null +++ b/pkgs/by-name/pa/pam_xdg/package.nix @@ -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 ]; + }; +}