1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 help2man,
8 curl,
9}:
10
11stdenv.mkDerivation {
12 pname = "libykclient";
13 version = "unstable-2019-03-18";
14 src = fetchFromGitHub {
15 owner = "Yubico";
16 repo = "yubico-c-client";
17 rev = "ad9eda6aac4c3f81784607c30b971f4a050b5c2e";
18 sha256 = "01b19jgv2lypih6lhw9yjjsfl8q1ahl955vhr2ai8ccshh0050yj";
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 pkg-config
24 help2man
25 ];
26 buildInputs = [ curl ];
27
28 meta = with lib; {
29 description = "Yubikey C client library";
30 mainProgram = "ykclient";
31 homepage = "https://developers.yubico.com/yubico-c-client";
32 license = licenses.bsd2;
33 maintainers = [ ];
34 };
35}