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