Files
nixpkgs/pkgs/by-name/pc/pcsc-cyberjack/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
libusb1,
pcsclite,
}:
let
version = "3.99.5";
suffix = "SP15";
tarBall = "${version}final.${suffix}";
in
stdenv.mkDerivation rec {
pname = "pcsc-cyberjack";
inherit version;
src = fetchurl {
url = "https://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.bz2";
sha256 = "sha256-rLfCgyRQcYdWcTdnxLPvUAgy1lLtUbNRELkQsR69Rno=";
};
outputs = [
"out"
"tools"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libusb1
pcsclite
];
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
configureFlags = [
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
"--bindir=${placeholder "tools"}/bin"
];
postInstall = "make -C tools/cjflash install";
meta = with lib; {
description = "REINER SCT cyberJack USB chipcard reader user space driver";
mainProgram = "cjflash";
homepage = "https://www.reiner-sct.com/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [
aszlig
flokli
];
platforms = platforms.linux;
};
}