python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / fprintd / tod.nix
blobe1c836e76b25aba30dbe00a1a0fab24440ef8569
1 { lib
2 , fetchFromGitLab
3 , fetchpatch
4 , fprintd
5 , libfprint-tod
6 }:
8 (fprintd.override { libfprint = libfprint-tod; }).overrideAttrs (oldAttrs: rec {
9     pname = "fprintd-tod";
10     version = "1.90.9";
12     src = fetchFromGitLab {
13       domain = "gitlab.freedesktop.org";
14       owner = "libfprint";
15       repo = "fprintd";
16       rev = "v${version}";
17       sha256 = "sha256-rOTVThHOY/Q2IIu2RGiv26UE2V/JFfWWnfKZQfKl5Mg=";
18     };
20     patches = oldAttrs.patches or [] ++ [
21       (fetchpatch {
22         name = "use-more-idiomatic-correct-embedded-shell-scripting";
23         url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/f4256533d1ffdc203c3f8c6ee42e8dcde470a93f.patch";
24         sha256 = "sha256-4uPrYEgJyXU4zx2V3gwKKLaD6ty0wylSriHlvKvOhek=";
25       })
26       (fetchpatch {
27         name = "remove-pointless-copying-of-files-into-build-directory";
28         url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/2c34cef5ef2004d8479475db5523c572eb409a6b.patch";
29         sha256 = "sha256-2pZBbMF1xjoDKn/jCAIldbeR2JNEVduXB8bqUrj2Ih4=";
30       })
31       (fetchpatch {
32         name = "build-Do-not-use-positional-arguments-in-i18n.merge_file";
33         url = "https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/50943b1bd4f18d103c35233f0446ce7a31d1817e.patch";
34         sha256 = "sha256-ANkAq6fr0VRjkS0ckvf/ddVB2mH4b2uJRTI4H8vPPes=";
35       })
36     ];
38     postPatch = oldAttrs.postPatch or "" + ''
39       # part of "remove-pointless-copying-of-files-into-build-directory" but git-apply doesn't handle renaming
40       mv src/device.xml src/net.reactivated.Fprint.Device.xml
41       mv src/manager.xml src/net.reactivated.Fprint.Manager.xml
42     '';
44     meta = {
45       homepage = "https://fprint.freedesktop.org/";
46       description = "fprintd built with libfprint-tod to support Touch OEM Drivers";
47       license = lib.licenses.gpl2Plus;
48       platforms = lib.platforms.linux;
49       maintainers = with lib.maintainers; [ hmenke ];
50     };
51   })