diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libp11')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libp11/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libp11/default.nix b/nixpkgs/pkgs/development/libraries/libp11/default.nix new file mode 100644 index 000000000000..eb577a7f5a17 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libp11/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool, pkg-config +, openssl }: + +stdenv.mkDerivation rec { + pname = "libp11"; + version = "0.4.11"; + + src = fetchFromGitHub { + owner = "OpenSC"; + repo = "libp11"; + rev = "${pname}-${version}"; + sha256 = "0hcl706i04nw5c1sj7l6sj6m0yjq6qijz345v498jll58fp5wif8"; + }; + + configureFlags = [ + "--with-enginesdir=${placeholder "out"}/lib/engines" + ]; + + nativeBuildInputs = [ autoreconfHook pkg-config libtool ]; + + buildInputs = [ openssl ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier"; + homepage = "https://github.com/OpenSC/libp11"; + license = licenses.lgpl21Plus; + platforms = platforms.all; + }; +} |