pcsclite: split package

This commit is contained in:
Jan Tojnar
2018-06-29 04:40:54 +02:00
parent 1cd096a1f0
commit 3784fd5e46
13 changed files with 24 additions and 17 deletions
+7
View File
@@ -5,6 +5,8 @@ stdenv.mkDerivation rec {
name = "pcsclite-${version}";
version = "1.8.23";
outputs = [ "bin" "out" "dev" "doc" "man" ];
src = fetchurl {
url = "https://pcsclite.apdu.fr/files/pcsc-lite-${version}.tar.bz2";
sha256 = "1jc9ws5ra6v3plwraqixin0w0wfxj64drahrbkyrrwzghqjjc9ss";
@@ -28,6 +30,11 @@ stdenv.mkDerivation rec {
}' config.h
'';
postInstall = ''
# pcsc-spy is a debugging utility and it drags python into the closure
moveToOutput bin/pcsc-spy "$dev"
'';
nativeBuildInputs = [ pkgconfig perl python2 ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];