nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 31 lines 777 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool, pkg-config 2, openssl }: 3 4stdenv.mkDerivation rec { 5 pname = "libp11"; 6 version = "0.4.11"; 7 8 src = fetchFromGitHub { 9 owner = "OpenSC"; 10 repo = "libp11"; 11 rev = "${pname}-${version}"; 12 sha256 = "0hcl706i04nw5c1sj7l6sj6m0yjq6qijz345v498jll58fp5wif8"; 13 }; 14 15 configureFlags = [ 16 "--with-enginesdir=${placeholder "out"}/lib/engines" 17 ]; 18 19 nativeBuildInputs = [ autoreconfHook pkg-config libtool ]; 20 21 buildInputs = [ openssl ]; 22 23 enableParallelBuilding = true; 24 25 meta = with lib; { 26 description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier"; 27 homepage = "https://github.com/OpenSC/libp11"; 28 license = licenses.lgpl21Plus; 29 platforms = platforms.all; 30 }; 31}