lol
1{ stdenv, fetchFromGitHub, autoreconfHook, which, pkgconfig, libiconv
2, libffi, libtasn1, gtk_doc, libxslt, docbook_xsl }:
3
4stdenv.mkDerivation rec {
5 name = "p11-kit-${version}";
6 version = "0.23.7";
7
8 src = fetchFromGitHub {
9 owner = "p11-glue";
10 repo = "p11-kit";
11 rev = version;
12 sha256 = "1l8sg0g74k2mk0y6vz19hc103dzizxa0h579gdhvxifckglb01hy";
13 };
14
15 outputs = [ "out" "dev" "devdoc" ];
16 outputBin = "dev";
17
18 nativeBuildInputs = [ autoreconfHook which pkgconfig gtk_doc libxslt docbook_xsl ];
19 buildInputs = [ libffi libtasn1 libiconv ];
20
21 autoreconfPhase = ''
22 NOCONFIGURE=1 ./autogen.sh
23 '';
24
25 configureFlags = [
26 "--sysconfdir=/etc"
27 "--localstatedir=/var"
28 "--without-trust-paths"
29 "--enable-doc"
30 ];
31
32 installFlags = [ "exampledir=\${out}/etc/pkcs11" ];
33
34 meta = with stdenv.lib; {
35 homepage = https://p11-glue.freedesktop.org/;
36 platforms = platforms.all;
37 maintainers = with maintainers; [ wkennington ];
38 license = licenses.mit;
39 };
40}