fprintd: added option to use fork for Lenovo ThinkPad
This commit is contained in:
parent
394b43f1fd
commit
432944cdb3
@ -25,6 +25,16 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.fprintd;
|
||||
defaultText = "pkgs.fprintd";
|
||||
example = "pkgs.fprintd-thinkpad";
|
||||
description = ''
|
||||
fprintd package to use.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
@ -38,7 +48,7 @@ in
|
||||
|
||||
environment.systemPackages = [ pkgs.fprintd ];
|
||||
|
||||
systemd.packages = [ pkgs.fprintd ];
|
||||
systemd.packages = [ cfg.package ];
|
||||
|
||||
};
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
{ stdenv, fetchurl, pkgconfig, intltool
|
||||
, libfprint, glib, dbus-glib, polkit, nss, pam, systemd }:
|
||||
{ thinkpad ? false
|
||||
, stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null
|
||||
, libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fprintd-${version}";
|
||||
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchurl {
|
||||
@ -10,7 +11,10 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l";
|
||||
};
|
||||
|
||||
buildInputs = [ libfprint glib dbus-glib polkit nss pam systemd ];
|
||||
buildInputs = [ glib dbus-glib polkit nss pam systemd ]
|
||||
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
||||
++ stdenv.lib.optional (!thinkpad) libfprint;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig intltool ];
|
||||
|
||||
configureFlags = [ "--with-systemdsystemunitdir=$(out)/lib/systemd/system" "--localstatedir=/var" ];
|
||||
|
@ -2981,6 +2981,9 @@ in
|
||||
fprot = callPackage ../tools/security/fprot { };
|
||||
|
||||
fprintd = callPackage ../tools/security/fprintd { };
|
||||
fprintd-thinkpad = fprintd.override {
|
||||
thinkpad = true;
|
||||
};
|
||||
|
||||
franz = callPackage ../applications/networking/instant-messengers/franz { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user