SmartCardServices: init
This commit is contained in:
parent
d5dc446b38
commit
d227d1edf4
@ -0,0 +1,41 @@
|
|||||||
|
{ stdenv, appleDerivation, xcbuild, gnumake, Security
|
||||||
|
, libsecurity_utilities, libsecurity_cdsa_utilities }:
|
||||||
|
|
||||||
|
appleDerivation {
|
||||||
|
buildInputs = [ xcbuild libsecurity_utilities libsecurity_cdsa_utilities ];
|
||||||
|
|
||||||
|
DSTROOT = "$out";
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-I.";
|
||||||
|
preBuild = ''
|
||||||
|
mkdir -p Security
|
||||||
|
cp ${Security}/Library/Frameworks/Security.framework/Headers/*.h Security
|
||||||
|
'';
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace SmartCardServices.xcodeproj/project.pbxproj \
|
||||||
|
--replace "/usr/bin/gnumake" "${gnumake}/bin/make"
|
||||||
|
substituteInPlace src/PCSC/PCSC.exp \
|
||||||
|
--replace _PCSCVersionString "" \
|
||||||
|
--replace _PCSCVersionNumber ""
|
||||||
|
substituteInPlace Makefile.installPhase \
|
||||||
|
--replace chown "# chown" \
|
||||||
|
--replace /usr/bin/ ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
make -f Makefile.installPhase install
|
||||||
|
make -f Makefile-exec.installPhase install
|
||||||
|
mv $out/usr/* $out
|
||||||
|
rmdir $out/usr
|
||||||
|
|
||||||
|
mkdir -p $out/Library/Frameworks
|
||||||
|
cp -r Products/Release/PCSC.bundle $out/Library/Frameworks/PCSC.framework
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
maintainers = with maintainers; [ matthewbauer ];
|
||||||
|
platforms = platforms.darwin;
|
||||||
|
license = licenses.apsl20;
|
||||||
|
};
|
||||||
|
}
|
@ -7,6 +7,7 @@ let
|
|||||||
# now it's staying here.
|
# now it's staying here.
|
||||||
versions = {
|
versions = {
|
||||||
"osx-10.11.6" = {
|
"osx-10.11.6" = {
|
||||||
|
SmartCardServices = "55111";
|
||||||
dtrace = "168";
|
dtrace = "168";
|
||||||
xnu = "3248.60.10";
|
xnu = "3248.60.10";
|
||||||
libpthread = "138.10.4";
|
libpthread = "138.10.4";
|
||||||
@ -192,6 +193,8 @@ let
|
|||||||
adv_cmds = applePackage "adv_cmds" "osx-10.5.8" "102ssayxbg9wb35mdmhswbnw0bg7js3pfd8fcbic83c5q3bqa6c6" {};
|
adv_cmds = applePackage "adv_cmds" "osx-10.5.8" "102ssayxbg9wb35mdmhswbnw0bg7js3pfd8fcbic83c5q3bqa6c6" {};
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
|
SmartCardServices = applePackage "SmartCardServices" "osx-10.11.6" "1qqjlbi6j37mw9p3qpfnwf14xh9ff8h5786bmvzwc4kblfglabkm" {};
|
||||||
|
|
||||||
inherit (adv_cmds) ps locale;
|
inherit (adv_cmds) ps locale;
|
||||||
architecture = applePackage "architecture" "osx-10.11.6" "1pbpjcd7is69hn8y29i98ci0byik826if8gnp824ha92h90w0fq3" {};
|
architecture = applePackage "architecture" "osx-10.11.6" "1pbpjcd7is69hn8y29i98ci0byik826if8gnp824ha92h90w0fq3" {};
|
||||||
bootstrap_cmds = applePackage "bootstrap_cmds" "dev-tools-7.0" "1v5dv2q3af1xwj5kz0a5g54fd5dm6j4c9dd2g66n4kc44ixyrhp3" {};
|
bootstrap_cmds = applePackage "bootstrap_cmds" "dev-tools-7.0" "1v5dv2q3af1xwj5kz0a5g54fd5dm6j4c9dd2g66n4kc44ixyrhp3" {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user