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

89 lines
2 KiB
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
# nix build inputs
2025-01-20 15:06:16 -05:00
lib,
stdenv,
fetchFromGitLab,
nix-update-script,
# deps
2024-08-04 13:52:41 -04:00
dbus,
glib,
libfprint,
libpam-wrapper,
libxml2,
libxslt,
2023-11-22 15:33:16 -05:00
meson,
ninja,
2024-08-04 13:52:41 -04:00
pam,
perl,
2023-11-22 15:33:16 -05:00
pkg-config,
polkit,
python3Packages,
2023-11-22 15:33:16 -05:00
systemd,
...
2024-06-13 22:27:54 -04:00
}: let
pname = "pam-fprint-grosshack";
version = "0.3.0";
2024-06-13 22:27:54 -04:00
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitLab {
owner = "mishakmak";
repo = pname;
rev = "v${version}";
hash = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=";
};
# Tests aren't actually ran for some reason so I get rid of the warning
postPatch = ''
substituteInPlace ./meson.build --replace-fail \
"'gi.repository.FPrint': true," "'gi.repository.FPrint': false,"
'';
2024-06-13 22:27:54 -04:00
nativeBuildInputs = [
dbus
glib
libfprint
libpam-wrapper
libxml2
libxslt
2024-06-13 22:27:54 -04:00
meson
ninja
pam
perl
2024-06-13 22:27:54 -04:00
pkg-config
polkit
systemd
python3Packages.python
python3Packages.dbus-python
python3Packages.pydbus
python3Packages.pypamtest
python3Packages.python-dbusmock
2024-06-13 22:27:54 -04:00
];
2023-09-29 23:46:34 -04:00
2024-06-13 22:27:54 -04:00
mesonFlags = [
"-Dgtk_doc=true"
"-Dman=true"
2024-06-13 22:27:54 -04:00
"-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"
];
2025-01-20 15:06:16 -05:00
passthru.updateScript = nix-update-script {
extraArgs = [
''--version=$(curl -s https://gitlab.com/api/v4/projects/mishakmak%2Fpam-fprint-grosshack/repository/tags | jq -r .[0].name)''
];
};
2025-01-20 15:06:16 -05:00
meta = {
license = with lib.licenses; [gpl2Plus];
homepage = "https://gitlab.com/mishakmak/pam-fprint-grosshack";
description = ''
This is a fork of the pam module which implements the simultaneous password and
fingerprint behaviour present in pam_thinkfinger.
'';
2025-01-20 15:06:16 -05:00
};
2024-06-13 22:27:54 -04:00
}