lol
1{ stdenv, fetchFromGitHub, autoreconfHook, which, pkgconfig, libiconv
2, libffi, libtasn1 }:
3
4stdenv.mkDerivation rec {
5 name = "p11-kit-${version}";
6 version = "0.23.13";
7
8 src = fetchFromGitHub {
9 owner = "p11-glue";
10 repo = "p11-kit";
11 rev = version;
12 sha256 = "1z2rbw2qbwj64i88llc1mkf0263qa0kxc2350kg25r7mghxbw1y6";
13 };
14
15 outputs = [ "out" "dev"];
16 outputBin = "dev";
17
18 nativeBuildInputs = [ autoreconfHook which pkgconfig ];
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 ];
30
31 installFlags = [ "exampledir=\${out}/etc/pkcs11" ];
32
33 doInstallCheck = false; # probably a bug in this derivation
34 enableParallelBuilding = true;
35
36 meta = with stdenv.lib; {
37 homepage = https://p11-glue.freedesktop.org/;
38 platforms = platforms.all;
39 maintainers = with maintainers; [ wkennington ];
40 license = licenses.mit;
41 };
42}