mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
canokey-usbip: init at unstable-2024-03-11
canokey-usbip is a program that implements a virtual FIDO2 token over USB IP. Canokey has special integration with qemu and this tool can be used for testing FIDO2 tokens in virtualized environments.
This commit is contained in:
parent
acdc6d79cf
commit
a40acaa2b6
47
pkgs/by-name/ca/canokey-usbip/package.nix
Normal file
47
pkgs/by-name/ca/canokey-usbip/package.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
python3,
|
||||
stdenv,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "canokey-usbip";
|
||||
version = "0-unstable-2024-03-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "canokeys";
|
||||
repo = "canokey-usbip";
|
||||
rev = "cc7087277096f185401b05143f9a028711d43557";
|
||||
hash = "sha256-+7sGW2eGelRQ2TDvgUITbPdcsXo7Pp6Pp+r3RmyQAZM=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/COMMAND git describe.*\(>>.*\)/COMMAND echo ${finalAttrs.src.rev} \1/' canokey-core/CMakeLists.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
python3
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -D --target-directory=$out/bin canokey-usbip
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater {
|
||||
hardcodeZeroVersion = true;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "CanoKey USB/IP Virt Card";
|
||||
homepage = "https://github.com/canokeys/canokey-usbip";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.jmbaur ];
|
||||
mainProgram = "canokey-usbip";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user