2017-08-01 17:22:22 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, which, pkgconfig, libiconv
|
2017-09-19 21:24:36 +01:00
|
|
|
, libffi, libtasn1 }:
|
2011-11-07 16:48:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-01 01:03:23 +01:00
|
|
|
name = "p11-kit-${version}";
|
2018-01-27 12:09:20 +00:00
|
|
|
version = "0.23.9";
|
2011-11-07 16:48:14 +00:00
|
|
|
|
2017-08-01 01:03:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p11-glue";
|
|
|
|
repo = "p11-kit";
|
|
|
|
rev = version;
|
2018-01-27 12:09:20 +00:00
|
|
|
sha256 = "0lyv6m2jflvs23m0i6l64d470p5a315lz6vs4bflsqv8i1zrrcsh";
|
2011-11-07 16:48:14 +00:00
|
|
|
};
|
|
|
|
|
2017-09-19 21:24:36 +01:00
|
|
|
outputs = [ "out" "dev"];
|
2015-10-07 21:36:11 +01:00
|
|
|
outputBin = "dev";
|
|
|
|
|
2017-09-19 21:24:36 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook which pkgconfig ];
|
2017-08-01 01:03:23 +01:00
|
|
|
buildInputs = [ libffi libtasn1 libiconv ];
|
|
|
|
|
|
|
|
autoreconfPhase = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
'';
|
2011-11-07 16:48:14 +00:00
|
|
|
|
2015-04-20 06:43:41 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--without-trust-paths"
|
|
|
|
];
|
2014-01-10 00:17:54 +00:00
|
|
|
|
2015-04-20 06:43:41 +01:00
|
|
|
installFlags = [ "exampledir=\${out}/etc/pkcs11" ];
|
2014-01-10 00:17:54 +00:00
|
|
|
|
2015-04-20 06:43:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-05-07 22:06:56 +01:00
|
|
|
homepage = https://p11-glue.freedesktop.org/;
|
2015-04-20 06:43:41 +01:00
|
|
|
platforms = platforms.all;
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2015-04-22 09:49:22 +01:00
|
|
|
license = licenses.mit;
|
2011-11-07 16:48:14 +00:00
|
|
|
};
|
|
|
|
}
|