10 stdenv.mkDerivation (finalAttrs: {
11 pname = "canokey-usbip";
12 version = "0-unstable-2024-03-11";
14 src = fetchFromGitHub {
16 repo = "canokey-usbip";
17 rev = "cc7087277096f185401b05143f9a028711d43557";
18 hash = "sha256-+7sGW2eGelRQ2TDvgUITbPdcsXo7Pp6Pp+r3RmyQAZM=";
19 fetchSubmodules = true;
23 sed -i 's/COMMAND git describe.*\(>>.*\)/COMMAND echo ${finalAttrs.src.rev} \1/' canokey-core/CMakeLists.txt
32 install -D --target-directory=$out/bin canokey-usbip
35 passthru.updateScript = unstableGitUpdater {
36 hardcodeZeroVersion = true;
40 description = "CanoKey USB/IP Virt Card";
41 homepage = "https://github.com/canokeys/canokey-usbip";
42 license = lib.licenses.asl20;
43 maintainers = [ lib.maintainers.jmbaur ];
44 mainProgram = "canokey-usbip";
45 platforms = lib.platforms.all;