Merge pull request #84866 from peterhoeg/f/cyberjack
pcsc-cyberjack: minor cleanups
This commit is contained in:
commit
44a502bf6d
@ -1,25 +1,28 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libusb1, pcsclite }:
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libusb1, pcsclite }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
pname = "pcsc-cyberjack";
|
version = "3.99.5";
|
||||||
version = "3.99.5_SP13";
|
suffix = "SP13";
|
||||||
|
tarBall = "${version}final.${suffix}";
|
||||||
|
|
||||||
src = with stdenv.lib; let
|
in stdenv.mkDerivation rec {
|
||||||
splittedVer = splitString "_" version;
|
pname = "pcsc-cyberjack";
|
||||||
mainVer = if length splittedVer >= 1 then head splittedVer else version;
|
inherit version;
|
||||||
spVer = optionalString (length splittedVer >= 1) ("." + last splittedVer);
|
|
||||||
tarballVersion = "${mainVer}final${spVer}";
|
src = fetchurl {
|
||||||
in fetchurl {
|
url =
|
||||||
url = "http://support.reiner-sct.de/downloads/LINUX/V${version}"
|
"http://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.gz";
|
||||||
+ "/pcsc-cyberjack_${tarballVersion}.tar.gz";
|
|
||||||
sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
|
sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "tools" ];
|
outputs = [ "out" "tools" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ libusb1 pcsclite ];
|
buildInputs = [ libusb1 pcsclite ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
|
||||||
"--bindir=${placeholder "tools"}/bin"
|
"--bindir=${placeholder "tools"}/bin"
|
||||||
@ -31,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "REINER SCT cyberJack USB chipcard reader user space driver";
|
description = "REINER SCT cyberJack USB chipcard reader user space driver";
|
||||||
homepage = "https://www.reiner-sct.com/";
|
homepage = "https://www.reiner-sct.com/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ aszlig ];
|
maintainers = with maintainers; [ aszlig ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user