depot/third_party/nixpkgs/pkgs/tools/security/yubihsm-connector/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

36 lines
825 B
Nix

{ lib, libusb1, buildGoModule, fetchFromGitHub, pkg-config }:
buildGoModule rec {
pname = "yubihsm-connector";
version = "3.0.4";
src = fetchFromGitHub {
owner = "Yubico";
repo = "yubihsm-connector";
rev = version;
hash = "sha256-snoQZsmKQPcsB5EpZc4yon02QbxNU5B5TAwRPjs1O5I=";
};
vendorHash = "sha256-XW7rEHY3S+M3b6QjmINgrCak+BqCEV3PJP90jz7J47A=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libusb1
];
ldflags = [ "-s" "-w" ];
preBuild = ''
go generate
'';
meta = with lib; {
description = "yubihsm-connector performs the communication between the YubiHSM 2 and applications that use it";
homepage = "https://developers.yubico.com/yubihsm-connector/";
maintainers = with maintainers; [ matthewcroughan ];
license = licenses.asl20;
};
}