Change:
Describe the bug I might some back to this when I have the time. Packages and versions to upgrade
Hi, I try to build the master-unstable and I have a problem when fprintd is build. It seems that isn't in dependencies :
Fixed in .

Discussion:
systemd.packages = [ cfg.package ]; <del> # The upstream unit does not use StateDirectory, and will # fail if the directory it needs is not present. Should be # fixed when https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/5 # is merged. systemd.services.fprintd.serviceConfig.StateDirectory = "fprint"; </del> }; }

<del> { thinkpad ? false, stdenv, fetchFromGitHub, fetchurl, pkgconfig, meson, ninja, libusb, pixman, glib, nss, gtk3 , coreutils, gtk-doc, docbook_xsl, docbook_xml_dtd_43, openssl ? null }: </del> <ins> { thinkpad ? false , stdenv , fetchFromGitHub , fetchurl , pkgconfig , meson , ninja , libusb , pixman , glib , nss , gtk3 , coreutils , gtk-doc , docbook_xsl , docbook_xml_dtd_43 , openssl ? null }: </ins> assert thinkpad -> openssl != null; stdenv.mkDerivation rec { pname = "libfprint" + stdenv.lib.optionalString thinkpad "-thinkpad"; <del> version = "0.99.0"; </del> <ins> version = "1.0"; </ins> src = { libfprint-thinkpad =

sha256 = "1vps1wrp7hskf13f7jrv0dwry2fcid76x2w463wplngp63cj7b3b"; }; libfprint = fetchurl { <del> url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/82ba3cef5bdf72997df711eacdb13c0f/libfprint-${version}.tar.xz"; sha256 = "16r4nl40y0jri57jiqmdz4s87byblx22lbhyvqpljd6mqm5rg187"; </del> <ins> url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/aff93e9921d1cff53d7c070944952ff9/libfprint-${version}.tar.xz"; sha256 = "0v84pd12v016m8iimhq39fgzamlarqccsr7d98cvrrwrzrgcixrd"; </ins> }; }.${pname}; <del> buildInputs = [ libusb pixman glib nss gtk3 ] ++ stdenv.lib.optional thinkpad openssl; </del> <ins> nativeBuildInputs = [ pkgconfig meson ninja gtk-doc docbook_xsl docbook_xml_dtd_43 ]; </ins> <del> nativeBuildInputs = [ pkgconfig meson ninja gtk-doc docbook_xsl docbook_xml_dtd_43 ]; </del> <ins> buildInputs = [ libusb pixman glib nss gtk3 ] ++ stdenv.lib.optional thinkpad openssl ; </ins> <del> mesonFlags = [ "-Dudev_rules_dir=lib/udev/rules.d" "-Dx11-examples=false" ]; </del> <ins> mesonFlags = [ "-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d" "-Dx11-examples=false" ]; </ins> <del> preConfigure = '' </del> <ins> postPatch = '' </ins> substituteInPlace libfprint/meson.build  --replace /bin/echo ${coreutils}/bin/echo '';

{ thinkpad ? false <del> , stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null , libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd }: </del> <ins> , stdenv , fetchurl , pkgconfig , intltool , libfprint-thinkpad ? null , libfprint ? null , glib , dbus-glib , polkit , nss , pam , systemd }: </ins> stdenv.mkDerivation rec { pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad"; <del> version = "0.8.1"; </del> <ins> version = "0.9.0"; </ins> src = fetchurl { <del> url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/bdd9f91909f535368b7c21f72311704a/fprintd-${version}.tar.xz"; sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l"; </del> <ins> url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/9dec4b63d1f00e637070be1477ce63c0/fprintd-${version}.tar.xz"; sha256 = "182gcnwb6zjwmk0dn562rjmpbk7ac7dhipbfdhfic2sn1jzis49p"; </ins> }; <del> buildInputs = [ glib dbus-glib polkit nss pam systemd ] ++ stdenv.lib.optional thinkpad libfprint-thinkpad ++ stdenv.lib.optional (!thinkpad) libfprint; </del> <ins> nativeBuildInputs = [ intltool pkgconfig ]; </ins> <del> nativeBuildInputs = [ pkgconfig intltool ]; </del> <ins> buildInputs = [ glib dbus-glib polkit nss pam systemd ] ++ stdenv.lib.optional thinkpad libfprint-thinkpad ++ stdenv.lib.optional (!thinkpad) libfprint ; </ins> <del> configureFlags = [ "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system" "--localstatedir=/var" "--sysconfdir=${placeholder "out"}/etc" </del> <ins> configureFlags = [ # is hardcoded to /var/lib/fprint, this is for the StateDirectory install target "--localstatedir=${placeholder "out"}/var" "--sysconfdir=${placeholder "out"}/etc" "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system" </ins> ]; meta = with stdenv.lib; {