mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
31 lines
1.0 KiB
Nix
31 lines
1.0 KiB
Nix
{ stdenv, fetchurl, pkgconfig, libusb, pcsclite }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pcsc-cyberjack-${version}";
|
|
version = "3.99.5_SP09";
|
|
|
|
src = with stdenv.lib; let
|
|
splittedVer = splitString "_" version;
|
|
mainVer = if length splittedVer >= 1 then head splittedVer else version;
|
|
spVer = optionalString (length splittedVer >= 1) ("." + last splittedVer);
|
|
tarballVersion = "${mainVer}final${spVer}";
|
|
in fetchurl {
|
|
url = "http://support.reiner-sct.de/downloads/LINUX/V${version}"
|
|
+ "/pcsc-cyberjack-${tarballVersion}.tar.bz2";
|
|
sha256 = "1m1r26q0k2hrxfi73j4v25qfh20x4b1hcbcpgjgv7qxa33dbi30z";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libusb pcsclite ];
|
|
|
|
configureFlags = [ "--with-usbdropdir=\${prefix}/pcsc/drivers" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "REINER SCT cyberJack USB chipcard reader user space driver";
|
|
homepage = http://www.reiner-sct.com/;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ aszlig ];
|
|
};
|
|
}
|