From 467ecea0911827aacfa5ca5c2b7aee61c96e53ed Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Wed, 9 Nov 2022 13:20:37 -0500 Subject: [PATCH] libfprint: 1.94.4 -> 1.94.5 --- .../libraries/libfprint/default.nix | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/pkgs/development/libraries/libfprint/default.nix b/pkgs/development/libraries/libfprint/default.nix index e05f67e01fa6..1def54a3aed2 100644 --- a/pkgs/development/libraries/libfprint/default.nix +++ b/pkgs/development/libraries/libfprint/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { pname = "libfprint"; - version = "1.94.4"; + version = "1.94.5"; outputs = [ "out" "devdoc" ]; src = fetchFromGitLab { @@ -27,9 +27,18 @@ stdenv.mkDerivation rec { owner = "libfprint"; repo = pname; rev = "v${version}"; - sha256 = "sha256-C8vBjk0cZm/GSqc6mgNbXG8FycnWRaXhj9wIrLcWzfE="; + hash = "sha256-+eSvzbXxjemVKMeD8tp/0/tGBjw2EOlmyxb8KfyZKtA="; }; + postPatch = '' + patchShebangs \ + tests/test-runner.sh \ + tests/unittest_inspector.py \ + tests/virtual-image.py \ + tests/umockdev-test.py \ + tests/test-generated-hwdb.sh + ''; + nativeBuildInputs = [ pkg-config meson @@ -49,10 +58,6 @@ stdenv.mkDerivation rec { libgudev ]; - checkInputs = [ - python3 - ]; - mesonFlags = [ "-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d" # Include virtual drivers for fprintd tests @@ -60,15 +65,22 @@ stdenv.mkDerivation rec { "-Dudev_hwdb_dir=${placeholder "out"}/lib/udev/hwdb.d" ]; - doCheck = true; + installCheckInputs = [ + (python3.withPackages (p: with p; [ pygobject3 ])) + ]; - postPatch = '' - patchShebangs \ - tests/test-runner.sh \ - tests/unittest_inspector.py \ - tests/virtual-image.py \ - tests/umockdev-test.py \ - tests/test-generated-hwdb.sh + # We need to run tests _after_ install so all the paths that get loaded are in + # the right place. + doCheck = false; + + doInstallCheck = true; + + installCheckPhase = '' + runHook preInstallCheck + + ninjaCheckPhase + + runHook postInstallCheck ''; meta = with lib; {