uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/development/libraries/openct/default.nix
Normal file
42
pkgs/development/libraries/openct/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, pcsclite, libusb-compat-0_1
|
||||
, doxygen, libxslt
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openct";
|
||||
version = "0.6.20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenSC";
|
||||
repo = "openct";
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "09wxq0jxdxhci3zr7jd3zcxjkl3j0r1v00k3q8gqrg9gighh8nk2";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-api-doc"
|
||||
"--enable-usb"
|
||||
"--enable-pcsc"
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
buildInputs = [ pcsclite libusb-compat-0_1 doxygen libxslt ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/etc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
homepage = "https://github.com/OpenSC/openct/";
|
||||
license = licenses.lgpl21;
|
||||
description = "Drivers for several smart card readers";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue