summary refs log tree commit diff
path: root/pkgs/development/libraries/libp11/default.nix
blob: 26e754317df07557b98f82788617047f45a251f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchFromGitHub, autoreconfHook, libtool, openssl, pkgconfig }:

stdenv.mkDerivation rec {
  name = "libp11-${version}";
  version = "0.4.4";

  src = fetchFromGitHub {
    owner = "OpenSC";
    repo = "libp11";
    rev = name;
    sha256 = "1jnpnwipmw3skw112qff36w046nyz5amiil228rn5divpkvx4axa";
  };

  makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];

  nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
  buildInputs = [ openssl ];

  meta = with stdenv.lib; {
    homepage = https://github.com/OpenSC/libp11;
    license = licenses.lgpl21Plus;
    description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
    platforms = platforms.all;
  };
}