Adding propietary drivers for the SCM smart card readers.
svn path=/nixpkgs/trunk/; revision=19378
This commit is contained in:
parent
e78c7a7189
commit
4672cc340c
38
pkgs/development/libraries/scmccid/default.nix
Normal file
38
pkgs/development/libraries/scmccid/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{stdenv, fetchurl, patchelf, libusb}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "scmccid-5.0.11";
|
||||
|
||||
src = if (stdenv.system == "i686-linux") then (fetchurl {
|
||||
url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux.tar.gz";
|
||||
sha256 = "1r5wkarhzl09ncgj55baizf573czw0nplh1pgddzx9xck66kh5bm";
|
||||
})
|
||||
else if (stdenv.system == "x86_64-linux") then (fetchurl {
|
||||
url = "http://www.scmmicro.com/support/download/scmccid_5.0.11_linux_x64.tar.gz";
|
||||
sha256 = "0k9lzlk01sl4ycfqgrqqy3bildz0mcr1r0kkicgjz96l4s0jgz0i";
|
||||
})
|
||||
else throw "Architecture not supported";
|
||||
|
||||
buildInputs = [ patchelf ];
|
||||
|
||||
installPhase = ''
|
||||
RPATH=${libusb}/lib:${stdenv.gcc.libc}/lib
|
||||
|
||||
for a in proprietary/*/Contents/Linux/*.so*; do
|
||||
if ! test -L $a; then
|
||||
patchelf --set-rpath $RPATH $a
|
||||
fi
|
||||
done
|
||||
|
||||
ensureDir $out/pcsc/drivers
|
||||
cp -R proprietary/* $out/pcsc/drivers
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.scmmicro.com/support/pc-security-support/downloads.html;
|
||||
description = "PCSC drivers for linux, for the SCM SCR3310 v2.0 card and others";
|
||||
license = "nonfree";
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
@ -3150,6 +3150,10 @@ let
|
||||
inherit fetchurl stdenv pkgconfig cairo x11 fontconfig freetype libsigcxx;
|
||||
};
|
||||
|
||||
scmccid = import ../development/libraries/scmccid {
|
||||
inherit fetchurl stdenv libusb patchelf;
|
||||
};
|
||||
|
||||
ccrtp = import ../development/libraries/ccrtp {
|
||||
inherit fetchurl stdenv lib pkgconfig openssl libgcrypt commoncpp2;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user