Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pcsc-cyberjack: Also install cjflash tool

This tool is necessary in order to update the firmware of the secoder.

The reason I've added this to a separate output "tools" is because it
clearly is not relevant for the PCSC driver itself and it's also very
rarely needed.

I've also verified wether the closure of the PCSC plugin env still only
contains the main output and that's the case.

There are also other tools - cjBingoTest and cjgeldkarte, where the
former doesn't compile due to cjeca32.h not being found and cjgeldkarte,
which does compile but tries to dlopen() the library and subsequently
fails.

Both of these tools however look like they're just performing tests and
are not very useful outside of development, so I opted to not include
them.

Signed-off-by: aszlig <aszlig@nix.build>

aszlig a70d3bab f37f34e3

+8 -1
+8 -1
pkgs/tools/security/pcsc-cyberjack/default.nix
··· 15 15 sha256 = "04pkmybal56s5xnjld09vl1s1h6qf8mvhm41b758d6hi240kgp1j"; 16 16 }; 17 17 18 + outputs = [ "out" "tools" ]; 19 + 18 20 nativeBuildInputs = [ pkgconfig ]; 19 21 buildInputs = [ libusb pcsclite ]; 20 22 21 - configureFlags = [ "--with-usbdropdir=\${prefix}/pcsc/drivers" ]; 23 + configureFlags = [ 24 + "--with-usbdropdir=${placeholder "out"}/pcsc/drivers" 25 + "--bindir=${placeholder "tools"}/bin" 26 + ]; 27 + 28 + postInstall = "make -C tools/cjflash install"; 22 29 23 30 meta = with stdenv.lib; { 24 31 description = "REINER SCT cyberJack USB chipcard reader user space driver";