forked from mirrors/nixpkgs
3679c8d2d1
Unfortunately, the upstream changelog consists of just the following: * Update to the Reiner-SCT repository rev cyberJack@1374 This is not very helpful since I haven't found a public SVN (I assume, since it's using integer revisions) repository, so I decided to diff the tarball against the old one, here's what I've found: * No longer ship generated files from autotools * Add support for REINER SCT cyberJack comfort PL * Add support for tanJack USB * Allow to override secoder information * Lots of whitespace and coding style changes As mentioned above, the autotools-generated files are no longer shipped, so I've added autoreconfHook to nativeBuildInputs. I also verified the source tarball using the upstream hashes found here: http://downloads.reiner-sct.de/LINUX/Hashwerte/Hashwerte.txt Signed-off-by: aszlig <aszlig@nix.build> Merges: https://github.com/NixOS/nixpkgs/pull/84749
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libusb1, pcsclite }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pcsc-cyberjack";
|
|
version = "3.99.5_SP13";
|
|
|
|
src = with stdenv.lib; let
|
|
splittedVer = splitString "_" version;
|
|
mainVer = if length splittedVer >= 1 then head splittedVer else version;
|
|
spVer = optionalString (length splittedVer >= 1) ("." + last splittedVer);
|
|
tarballVersion = "${mainVer}final${spVer}";
|
|
in fetchurl {
|
|
url = "http://support.reiner-sct.de/downloads/LINUX/V${version}"
|
|
+ "/pcsc-cyberjack_${tarballVersion}.tar.gz";
|
|
sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
|
|
};
|
|
|
|
outputs = [ "out" "tools" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ libusb1 pcsclite ];
|
|
|
|
configureFlags = [
|
|
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
|
"--bindir=${placeholder "tools"}/bin"
|
|
];
|
|
|
|
postInstall = "make -C tools/cjflash install";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "REINER SCT cyberJack USB chipcard reader user space driver";
|
|
homepage = "https://www.reiner-sct.com/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ aszlig ];
|
|
};
|
|
}
|