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";