Merge pull request #17685 from matthewbauer/darwin-misc2

Darwin misc. fixes
This commit is contained in:
Daniel Peebles
2016-08-24 11:52:27 +02:00
committed by GitHub
44 changed files with 162 additions and 49 deletions
+4 -2
View File
@@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2 }:
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2
, IOKit ? null }:
stdenv.mkDerivation rec {
name = "pcsclite-${version}";
@@ -26,7 +27,8 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ pkgconfig perl python2 ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
meta = with stdenv.lib; {
description = "Middleware to access a smart card using SCard API (PC/SC)";
+2
View File
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1axg8r4g5n5kdqj5013pgck80nni3z172xkg506vz4zx1zcmrm4r";
};
buildFlags = [ "CC=cc" ];
installPhase = ''
mkdir -p $out/bin
mv stricat $out/bin