From c72fe93a2866a80d97d9b79ecc7dff6479ae3905 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 18 Sep 2023 07:47:52 +0530 Subject: pkgs/pam_rundir: init --- common.nix | 1 + pkgs/default.nix | 5 +++++ pkgs/pam_rundir/default.nix | 28 ++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 pkgs/default.nix create mode 100644 pkgs/pam_rundir/default.nix diff --git a/common.nix b/common.nix index 8421fb9..4671baf 100644 --- a/common.nix +++ b/common.nix @@ -86,6 +86,7 @@ in ]; nixpkgs.overlays = [ (import ./overlays/dwl-sinan.nix) + (import ./pkgs) ]; # sops diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..db2fbef --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,5 @@ +final: prev: + +{ + pam_rundir = final.callPackage ./pam_rundir; +} diff --git a/pkgs/pam_rundir/default.nix b/pkgs/pam_rundir/default.nix new file mode 100644 index 0000000..f20661d --- /dev/null +++ b/pkgs/pam_rundir/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, pam }: + +stdenv.mkDerivation rec { + pname = "pam_rundir"; + version = "186"; + + src = fetchFromGitHub { + url = "https://www.padl.com/download/pam_ldap-${version}.tar.gz"; + sha256 = "0lv4f7hc02jrd2l3gqxd247qq62z11sp3fafn8lgb8ymb7aj5zn8"; + }; + + buildInputs = [ pam ]; + + meta = { + homepage = "https://www.padl.com/OSS/pam_ldap.html"; + description = "Provide user runtime directory on Linux systems"; + longDescription = '' + pam_rundir is a PAM module that can be used to provide user runtime + directory, as described in the XDG Base Directory Specification. + + The directory will be created on login (open session) and removed on + logout (close session), and its full path made available in an + environment variable, usually $XDG_RUNTIME_DIR + ''; + license = "GPL"; + inherit (pam.meta) platforms; + }; +} -- cgit v1.2.3