nixpkgs/pkgs/development/libraries/libp11/default.nix

26 lines
694 B
Nix
Raw Normal View History

2017-03-08 14:31:34 +01:00
{ stdenv, fetchFromGitHub, autoreconfHook, libtool, openssl, pkgconfig }:
stdenv.mkDerivation rec {
2017-03-12 19:27:55 +01:00
name = "libp11-${version}";
version = "0.4.4";
2017-03-08 14:31:34 +01:00
src = fetchFromGitHub {
owner = "OpenSC";
repo = "libp11";
rev = name;
2017-03-12 19:27:55 +01:00
sha256 = "1jnpnwipmw3skw112qff36w046nyz5amiil228rn5divpkvx4axa";
};
2017-03-08 14:31:34 +01:00
2017-03-12 19:27:55 +01:00
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
2017-03-08 14:31:34 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
buildInputs = [ openssl ];
2017-03-12 19:27:55 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/OpenSC/libp11;
2017-03-18 19:41:23 +01:00
license = licenses.lgpl21Plus;
description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
2017-03-12 19:27:55 +01:00
platforms = platforms.all;
};
}