Skip to content

Commit

Permalink
libfprintd: 1.94.6 -> 1.94.8 (NixOS#344384)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Nov 3, 2024
2 parents 5113988 + 6e3333c commit 42d0e10
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 81 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
{ lib
, fetchFromGitLab
, fetchpatch
, fprintd
, libfprint-tod
{
lib,
fetchFromGitLab,
fetchpatch,
libxml2,
fprintd,
libfprint-tod,
python3Packages,
libpam-wrapper,
gusb,
gobject-introspection,
}:

(fprintd.override { libfprint = libfprint-tod; }).overrideAttrs (oldAttrs: rec {
(fprintd.override { libfprint = libfprint-tod; }).overrideAttrs (
finalAttrs: previousAttrs: {
pname = "fprintd-tod";
version = "1.90.9";

src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = "fprintd";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "sha256-rOTVThHOY/Q2IIu2RGiv26UE2V/JFfWWnfKZQfKl5Mg=";
};

patches = oldAttrs.patches or [] ++ [
nativeBuildInputs = previousAttrs.nativeBuildInputs or [ ] ++ [
libpam-wrapper
python3Packages.python
python3Packages.pycairo
python3Packages.dbus-python
python3Packages.python-dbusmock
python3Packages.pygobject3
gusb
python3Packages.pypamtest
gobject-introspection
libxml2 # for xmllint
];

patches = previousAttrs.patches or [ ] ++ [
(fetchpatch {
name = "use-more-idiomatic-correct-embedded-shell-scripting";
url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/f4256533d1ffdc203c3f8c6ee42e8dcde470a93f.patch";
Expand All @@ -40,11 +60,13 @@
})
];

postPatch = oldAttrs.postPatch or "" + ''
# part of "remove-pointless-copying-of-files-into-build-directory" but git-apply doesn't handle renaming
mv src/device.xml src/net.reactivated.Fprint.Device.xml
mv src/manager.xml src/net.reactivated.Fprint.Manager.xml
'';
postPatch =
previousAttrs.postPatch or ""
+ ''
# part of "remove-pointless-copying-of-files-into-build-directory" but git-apply doesn't handle renaming
mv src/device.xml src/net.reactivated.Fprint.Device.xml
mv src/manager.xml src/net.reactivated.Fprint.Manager.xml
'';

meta = {
homepage = "https://fprint.freedesktop.org/";
Expand All @@ -53,4 +75,5 @@
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ hmenke ];
};
})
}
)
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
{ lib, stdenv
, fetchFromGitLab
, pkg-config
, gobject-introspection
, meson
, ninja
, perl
, gettext
, gtk-doc
, libxslt
, docbook-xsl-nons
, docbook_xml_dtd_412
, glib
, gusb
, dbus
, polkit
, nss
, pam
, systemd
, libfprint
, python3
{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
gobject-introspection,
meson,
ninja,
perl,
gettext,
gtk-doc,
libxslt,
docbook-xsl-nons,
docbook_xml_dtd_412,
glib,
gusb,
dbus,
polkit,
nss,
pam,
systemd,
libfprint,
python3,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "fprintd";
version = "1.94.4";
outputs = [ "out" "devdoc" ];
outputs = [
"out"
"devdoc"
];

src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = pname;
rev = "v${version}";
sha256 = "sha256-B2g2d29jSER30OUqCkdk3+Hv5T3DA4SUKoyiqHb8FeU=";
repo = "fprintd";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-B2g2d29jSER30OUqCkdk3+Hv5T3DA4SUKoyiqHb8FeU=";
};

nativeBuildInputs = [
Expand All @@ -41,6 +46,7 @@ stdenv.mkDerivation rec {
perl # for pod2man
gettext
gtk-doc
python3
libxslt
dbus
docbook-xsl-nons
Expand Down Expand Up @@ -81,11 +87,10 @@ stdenv.mkDerivation rec {
# FIXME: Ugly hack for tests to find libpam_wrapper.so
LIBRARY_PATH = lib.makeLibraryPath [ python3.pkgs.pypamtest ];

doCheck = true;

mesonCheckFlags = [
# PAM related checks are timing out
"--no-suite" "fprintd:TestPamFprintd"
"--no-suite"
"fprintd:TestPamFprintd"
];

patches = [
Expand All @@ -107,11 +112,11 @@ stdenv.mkDerivation rec {
--replace "'G_DEBUG=fatal-criticals'," ""
'';

meta = with lib; {
meta = {
homepage = "https://fprint.freedesktop.org/";
description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ abbradar ];
};
}
})
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
{ lib, stdenv
, fetchFromGitLab
, pkg-config
, meson
, python3
, ninja
, gusb
, pixman
, glib
, nss
, gobject-introspection
, cairo
, libgudev
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
meson,
python3,
ninja,
gusb,
pixman,
glib,
nss,
gobject-introspection,
cairo,
libgudev,
gtk-doc,
docbook-xsl-nons,
docbook_xml_dtd_43,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libfprint";
version = "1.94.6";
outputs = [ "out" "devdoc" ];
version = "1.94.8";
outputs = [
"out"
"devdoc"
];

src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = pname;
rev = "v${version}";
hash = "sha256-lDnAXWukBZSo8X6UEVR2nOMeVUi/ahnJgx2cP+vykZ8=";
repo = "libfprint";
rev = "v${finalAttrs.version}";
hash = "sha256-PZr4ZeVnuCKYfI8CKvRqBwalxsz9Ka17kSuLflwl7mE=";
};

postPatch = ''
Expand Down Expand Up @@ -82,11 +87,11 @@ stdenv.mkDerivation rec {
runHook postInstallCheck
'';

meta = with lib; {
meta = {
homepage = "https://fprint.freedesktop.org/";
description = "Library designed to make it easy to add support for consumer fingerprint readers";
license = licenses.lgpl21Only;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
license = lib.licenses.lgpl21Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ abbradar ];
};
}
})
6 changes: 0 additions & 6 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7582,10 +7582,6 @@ with pkgs;

fpm = callPackage ../tools/package-management/fpm { };

fprintd = callPackage ../tools/security/fprintd { };

fprintd-tod = callPackage ../tools/security/fprintd/tod.nix { };

ferdium = callPackage ../applications/networking/instant-messengers/ferdium {
mkFranzDerivation = callPackage ../applications/networking/instant-messengers/franz/generic.nix { };
};
Expand Down Expand Up @@ -20669,8 +20665,6 @@ with pkgs;
extraOnly = true;
};

libfprint = callPackage ../development/libraries/libfprint { };

libfprint-tod = callPackage ../development/libraries/libfprint-tod { };

libfprint-2-tod1-goodix = callPackage ../development/libraries/libfprint-2-tod1-goodix { };
Expand Down

0 comments on commit 42d0e10

Please sign in to comment.