nixpkgs/pkgs/development/libraries/p11-kit/default.nix

43 lines
1010 B
Nix
Raw Normal View History

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