btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libykneomgr / package.nix
blob8278b3d8a841878e7968dd9b443a0b5e2c0515b4
1 { lib, stdenv, fetchurl, pkg-config, pcsclite, libzip, help2man }:
3 stdenv.mkDerivation rec {
4   pname = "libykneomgr";
5   version = "0.1.8";
7   src = fetchurl {
8     url = "https://developers.yubico.com/libykneomgr/Releases/${pname}-${version}.tar.gz";
9     sha256 = "12gqblz400kr11m1fdr1vvwr85lgy5v55zy0cf782whpk8lyyj97";
10   };
12   nativeBuildInputs = [ pkg-config ];
13   buildInputs = [ pcsclite libzip help2man ];
15   configureFlags = [
16     "--with-backend=pcsc"
17   ];
19   meta = with lib; {
20     description = "C library to interact with the CCID-part of the Yubikey NEO";
21     homepage = "https://developers.yubico.com/libykneomgr";
22     license = licenses.bsd3;
23     mainProgram = "ykneomgr";
24     platforms = platforms.unix;
25   };