nixpkgs/pkgs/tools/security/pcsc-cyberjack/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

43 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, autoreconfHook, pkgconfig, libusb1, pcsclite }:
let
version = "3.99.5";
suffix = "SP13";
tarBall = "${version}final.${suffix}";
in stdenv.mkDerivation rec {
pname = "pcsc-cyberjack";
inherit version;
src = fetchurl {
url =
"http://support.reiner-sct.de/downloads/LINUX/V${version}_${suffix}/${pname}_${tarBall}.tar.gz";
sha256 = "1lx4bfz4riz7j77sl65akyxzww0ygm63w0c1b75knr1pijlv8d3b";
};
outputs = [ "out" "tools" ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libusb1 pcsclite ];
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
configureFlags = [
"--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
"--bindir=${placeholder "tools"}/bin"
];
postInstall = "make -C tools/cjflash install";
meta = with lib; {
description = "REINER SCT cyberJack USB chipcard reader user space driver";
homepage = "https://www.reiner-sct.com/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ aszlig ];
platforms = platforms.linux;
};
}