about summary refs log tree commit diff
path: root/pkgs/tools/security/pcsc-cyberjack
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-09-27 04:17:24 +0200
committeraszlig <aszlig@nix.build>2018-09-27 04:30:21 +0200
commita70d3bab72ddcc80d45d1150cdaf4e857ff2af0b (patch)
tree506aa0f5541c0d2b74b81e79be221d8254e8170c /pkgs/tools/security/pcsc-cyberjack
parentf37f34e3dc945d0f6b3f6cf0eabf0ea4b12a7071 (diff)
downloadnixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.tar
nixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.tar.gz
nixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.tar.bz2
nixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.tar.lz
nixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.tar.xz
nixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.tar.zst
nixlib-a70d3bab72ddcc80d45d1150cdaf4e857ff2af0b.zip
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>
Diffstat (limited to 'pkgs/tools/security/pcsc-cyberjack')
-rw-r--r--pkgs/tools/security/pcsc-cyberjack/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/security/pcsc-cyberjack/default.nix b/pkgs/tools/security/pcsc-cyberjack/default.nix
index 7d7c8ef49713..23a744f8e23d 100644
--- a/pkgs/tools/security/pcsc-cyberjack/default.nix
+++ b/pkgs/tools/security/pcsc-cyberjack/default.nix
@@ -15,10 +15,17 @@ stdenv.mkDerivation rec {
     sha256 = "04pkmybal56s5xnjld09vl1s1h6qf8mvhm41b758d6hi240kgp1j";
   };
 
+  outputs = [ "out" "tools" ];
+
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ libusb pcsclite ];
 
-  configureFlags = [ "--with-usbdropdir=\${prefix}/pcsc/drivers" ];
+  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";