nixos-configs/packages/pam-fprint-grosshack/default.nix

45 lines
941 B
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
2024-08-04 13:52:41 -04:00
pam-fprint-grosshack-src,
dbus,
glib,
libfprint,
libpam-wrapper,
2023-11-22 15:33:16 -05:00
meson,
ninja,
2024-08-04 13:52:41 -04:00
pam,
2023-11-22 15:33:16 -05:00
pkg-config,
polkit,
2024-08-04 13:52:41 -04:00
stdenv,
2023-11-22 15:33:16 -05:00
systemd,
...
2024-06-13 22:27:54 -04:00
}: let
inherit (builtins) elemAt head readFile split;
tag = head (split "'" (elemAt (split " version: '" (readFile "${pam-fprint-grosshack-src}/meson.build")) 2));
in
stdenv.mkDerivation {
pname = "pam-fprint-grosshack";
version = "${tag}+${pam-fprint-grosshack-src.shortRev}";
2024-06-13 22:27:54 -04:00
src = pam-fprint-grosshack-src;
2024-06-13 22:27:54 -04:00
nativeBuildInputs = [
meson
ninja
pkg-config
glib
libfprint
polkit
dbus
systemd
pam
libpam-wrapper
];
2023-09-29 23:46:34 -04:00
2024-06-13 22:27:54 -04:00
mesonFlags = [
"-Dpam_modules_dir=${placeholder "out"}/lib/security"
"-Dsysconfdir=${placeholder "out"}/etc"
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
"-Dsystemd_system_unit_dir=${placeholder "out"}/lib/systemd/system"
];
}