treewide: Remove use of apple_sdk framework stub paths (#399040)
This commit is contained in:
commit
bd79acabab
@ -12,7 +12,6 @@
|
|||||||
perl,
|
perl,
|
||||||
groff,
|
groff,
|
||||||
which,
|
which,
|
||||||
darwin,
|
|
||||||
ncurses,
|
ncurses,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -49,17 +48,13 @@ stdenv.mkDerivation rec {
|
|||||||
which
|
which
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
[
|
gtk2-x11
|
||||||
gtk2-x11
|
lesstif
|
||||||
lesstif
|
cfitsio
|
||||||
cfitsio
|
python3Env
|
||||||
python3Env
|
ncurses
|
||||||
ncurses
|
];
|
||||||
]
|
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin (
|
|
||||||
with darwin.apple_sdk.frameworks; [ CoreFoundation ]
|
|
||||||
);
|
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[ ./wrapper.patch ]
|
[ ./wrapper.patch ]
|
||||||
@ -73,10 +68,6 @@ stdenv.mkDerivation rec {
|
|||||||
# Workaround for https://github.com/NixOS/nixpkgs/issues/304528
|
# Workaround for https://github.com/NixOS/nixpkgs/issues/304528
|
||||||
env.GAG_CPP = lib.optionalString stdenv.hostPlatform.isDarwin "${gfortran.outPath}/bin/cpp";
|
env.GAG_CPP = lib.optionalString stdenv.hostPlatform.isDarwin "${gfortran.outPath}/bin/cpp";
|
||||||
|
|
||||||
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin (
|
|
||||||
with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks"
|
|
||||||
);
|
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
substituteInPlace admin/wrapper.sh --replace '%%OUT%%' $out
|
substituteInPlace admin/wrapper.sh --replace '%%OUT%%' $out
|
||||||
substituteInPlace admin/wrapper.sh --replace '%%PYTHONHOME%%' ${python3Env}
|
substituteInPlace admin/wrapper.sh --replace '%%PYTHONHOME%%' ${python3Env}
|
||||||
|
|||||||
23
pkgs/by-name/od/odin/darwin-remove-impure-links.patch
Normal file
23
pkgs/by-name/od/odin/darwin-remove-impure-links.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
diff --git a/src/linker.cpp b/src/linker.cpp
|
||||||
|
index ec165ef7d..91a28b8fc 100644
|
||||||
|
--- a/src/linker.cpp
|
||||||
|
+++ b/src/linker.cpp
|
||||||
|
@@ -769,18 +769,6 @@ try_cross_linking:;
|
||||||
|
gbString platform_lib_str = gb_string_make(heap_allocator(), "");
|
||||||
|
defer (gb_string_free(platform_lib_str));
|
||||||
|
if (build_context.metrics.os == TargetOs_darwin) {
|
||||||
|
- platform_lib_str = gb_string_appendc(platform_lib_str, "-Wl,-syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/usr/local/lib ");
|
||||||
|
-
|
||||||
|
- // Homebrew's default library path, checking if it exists to avoid linking warnings.
|
||||||
|
- if (gb_file_exists("/opt/homebrew/lib")) {
|
||||||
|
- platform_lib_str = gb_string_appendc(platform_lib_str, "-L/opt/homebrew/lib ");
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- // MacPort's default library path, checking if it exists to avoid linking warnings.
|
||||||
|
- if (gb_file_exists("/opt/local/lib")) {
|
||||||
|
- platform_lib_str = gb_string_appendc(platform_lib_str, "-L/opt/local/lib ");
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
// Only specify this flag if the user has given a minimum version to target.
|
||||||
|
// This will cause warnings to show up for mismatched libraries.
|
||||||
|
if (build_context.minimum_os_version_string_given) {
|
||||||
@ -1,12 +1,9 @@
|
|||||||
{
|
{
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lib,
|
lib,
|
||||||
libiconv,
|
|
||||||
llvmPackages,
|
llvmPackages,
|
||||||
MacOSX-SDK,
|
|
||||||
makeBinaryWrapper,
|
makeBinaryWrapper,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
Security,
|
|
||||||
which,
|
which,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -24,16 +21,9 @@ stdenv.mkDerivation {
|
|||||||
hash = "sha256-GXea4+OIFyAhTqmDh2q+ewTUqI92ikOsa2s83UH2r58=";
|
hash = "sha256-GXea4+OIFyAhTqmDh2q+ewTUqI92ikOsa2s83UH2r58=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch =
|
patches = [
|
||||||
lib.optionalString stdenv.hostPlatform.isDarwin ''
|
./darwin-remove-impure-links.patch
|
||||||
substituteInPlace src/linker.cpp \
|
];
|
||||||
--replace-fail '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' ${MacOSX-SDK}
|
|
||||||
''
|
|
||||||
+ ''
|
|
||||||
substituteInPlace build_odin.sh \
|
|
||||||
--replace-fail '-framework System' '-lSystem'
|
|
||||||
patchShebangs build_odin.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
LLVM_CONFIG = "${llvmPackages.llvm.dev}/bin/llvm-config";
|
LLVM_CONFIG = "${llvmPackages.llvm.dev}/bin/llvm-config";
|
||||||
|
|
||||||
@ -46,11 +36,6 @@ stdenv.mkDerivation {
|
|||||||
which
|
which
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
libiconv
|
|
||||||
Security
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
|||||||
@ -14,9 +14,7 @@
|
|||||||
docbook_xsl,
|
docbook_xsl,
|
||||||
libxslt,
|
libxslt,
|
||||||
docbook_xml_dtd_412,
|
docbook_xml_dtd_412,
|
||||||
darwin,
|
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
withApplePCSC ? stdenv.hostPlatform.isDarwin,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -35,46 +33,33 @@ stdenv.mkDerivation rec {
|
|||||||
autoreconfHook
|
autoreconfHook
|
||||||
libxslt # xsltproc
|
libxslt # xsltproc
|
||||||
];
|
];
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
[
|
zlib
|
||||||
zlib
|
readline
|
||||||
readline
|
openssl
|
||||||
openssl
|
libassuan
|
||||||
libassuan
|
libXt
|
||||||
libXt
|
libiconv
|
||||||
libiconv
|
docbook_xml_dtd_412
|
||||||
docbook_xml_dtd_412
|
] ++ lib.optional (!stdenv.hostPlatform.isDarwin) pcsclite;
|
||||||
]
|
|
||||||
++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Carbon
|
|
||||||
++ (if withApplePCSC then [ darwin.apple_sdk.frameworks.PCSC ] else [ pcsclite ]);
|
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags =
|
||||||
"--enable-zlib"
|
[
|
||||||
"--enable-readline"
|
"--enable-zlib"
|
||||||
"--enable-openssl"
|
"--enable-readline"
|
||||||
"--enable-pcsc"
|
"--enable-openssl"
|
||||||
"--enable-sm"
|
"--enable-pcsc"
|
||||||
"--enable-man"
|
"--enable-sm"
|
||||||
"--enable-doc"
|
"--enable-man"
|
||||||
"--localstatedir=/var"
|
"--enable-doc"
|
||||||
"--sysconfdir=/etc"
|
"--localstatedir=/var"
|
||||||
"--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook"
|
"--sysconfdir=/etc"
|
||||||
"--with-pcsc-provider=${
|
"--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook"
|
||||||
if withApplePCSC then
|
|
||||||
"${darwin.apple_sdk.frameworks.PCSC}/Library/Frameworks/PCSC.framework/PCSC"
|
|
||||||
else
|
|
||||||
"${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
|
||||||
}"
|
|
||||||
];
|
|
||||||
|
|
||||||
PCSC_CFLAGS = lib.concatStringsSep " " (
|
|
||||||
lib.optionals withApplePCSC [
|
|
||||||
"-I${darwin.apple_sdk.frameworks.PCSC}/Library/Frameworks/PCSC.framework/Headers"
|
|
||||||
"-I${lib.getDev pcsclite}/include/PCSC"
|
|
||||||
]
|
]
|
||||||
);
|
++ lib.optional (!stdenv.hostPlatform.isDarwin)
|
||||||
|
"--with-pcsc-provider=${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"sysconfdir=$(out)/etc"
|
"sysconfdir=$(out)/etc"
|
||||||
|
|||||||
@ -6,8 +6,6 @@
|
|||||||
libGLU,
|
libGLU,
|
||||||
libGL,
|
libGL,
|
||||||
libglut,
|
libglut,
|
||||||
Cocoa,
|
|
||||||
OpenGL,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -22,26 +20,16 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
lib.optionals stdenv.hostPlatform.isLinux [
|
libGLU
|
||||||
libGLU
|
libGL
|
||||||
libGL
|
libglut
|
||||||
libglut
|
];
|
||||||
]
|
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
Cocoa
|
|
||||||
OpenGL
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch =
|
postPatch = ''
|
||||||
''
|
substituteInPlace examples/ThirdPartyLibs/Gwen/CMakeLists.txt \
|
||||||
substituteInPlace examples/ThirdPartyLibs/Gwen/CMakeLists.txt \
|
--replace "-DGLEW_STATIC" "-DGLEW_STATIC -Wno-narrowing"
|
||||||
--replace "-DGLEW_STATIC" "-DGLEW_STATIC -Wno-narrowing"
|
'';
|
||||||
''
|
|
||||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
||||||
sed -i 's/FIND_PACKAGE(OpenGL)//' CMakeLists.txt
|
|
||||||
sed -i 's/FIND_LIBRARY(COCOA_LIBRARY Cocoa)//' CMakeLists.txt
|
|
||||||
'';
|
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
[
|
[
|
||||||
@ -50,11 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
"-DINSTALL_EXTRA_LIBS=ON"
|
"-DINSTALL_EXTRA_LIBS=ON"
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
"-DOPENGL_FOUND=true"
|
|
||||||
"-DOPENGL_LIBRARIES=${OpenGL}/Library/Frameworks/OpenGL.framework"
|
|
||||||
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks/OpenGL.framework"
|
|
||||||
"-DOPENGL_gl_LIBRARY=${OpenGL}/Library/Frameworks/OpenGL.framework"
|
|
||||||
"-DCOCOA_LIBRARY=${Cocoa}/Library/Frameworks/Cocoa.framework"
|
|
||||||
"-DBUILD_BULLET2_DEMOS=OFF"
|
"-DBUILD_BULLET2_DEMOS=OFF"
|
||||||
"-DBUILD_UNIT_TESTS=OFF"
|
"-DBUILD_UNIT_TESTS=OFF"
|
||||||
"-DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF"
|
"-DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF"
|
||||||
|
|||||||
@ -6,8 +6,6 @@
|
|||||||
libGLU,
|
libGLU,
|
||||||
libGL,
|
libGL,
|
||||||
libglut,
|
libglut,
|
||||||
Cocoa,
|
|
||||||
OpenGL,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -26,24 +24,14 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
lib.optionals stdenv.hostPlatform.isLinux [
|
libGLU
|
||||||
libGLU
|
libGL
|
||||||
libGL
|
libglut
|
||||||
libglut
|
];
|
||||||
]
|
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
Cocoa
|
|
||||||
OpenGL
|
|
||||||
];
|
|
||||||
|
|
||||||
patches = [ ./gwen-narrowing.patch ];
|
patches = [ ./gwen-narrowing.patch ];
|
||||||
|
|
||||||
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
||||||
sed -i 's/FIND_PACKAGE(OpenGL)//' CMakeLists.txt
|
|
||||||
sed -i 's/FIND_LIBRARY(COCOA_LIBRARY Cocoa)//' CMakeLists.txt
|
|
||||||
'';
|
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
[
|
[
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
@ -51,11 +39,6 @@ stdenv.mkDerivation {
|
|||||||
"-DINSTALL_EXTRA_LIBS=ON"
|
"-DINSTALL_EXTRA_LIBS=ON"
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
"-DOPENGL_FOUND=true"
|
|
||||||
"-DOPENGL_LIBRARIES=${OpenGL}/Library/Frameworks/OpenGL.framework"
|
|
||||||
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks/OpenGL.framework"
|
|
||||||
"-DOPENGL_gl_LIBRARY=${OpenGL}/Library/Frameworks/OpenGL.framework"
|
|
||||||
"-DCOCOA_LIBRARY=${Cocoa}/Library/Frameworks/Cocoa.framework"
|
|
||||||
"-DBUILD_BULLET2_DEMOS=OFF"
|
"-DBUILD_BULLET2_DEMOS=OFF"
|
||||||
"-DBUILD_UNIT_TESTS=OFF"
|
"-DBUILD_UNIT_TESTS=OFF"
|
||||||
];
|
];
|
||||||
|
|||||||
@ -4,15 +4,8 @@
|
|||||||
fetchurl,
|
fetchurl,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
libsndfile,
|
libsndfile,
|
||||||
ApplicationServices,
|
|
||||||
Carbon,
|
|
||||||
CoreServices,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
inherit (lib) optionals optionalString;
|
|
||||||
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libsamplerate";
|
pname = "libsamplerate";
|
||||||
version = "0.2.2";
|
version = "0.2.2";
|
||||||
@ -23,12 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs =
|
buildInputs = [ libsndfile ];
|
||||||
[ libsndfile ]
|
|
||||||
++ optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
ApplicationServices
|
|
||||||
CoreServices
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags = [ "--disable-fftw" ];
|
configureFlags = [ "--disable-fftw" ];
|
||||||
|
|
||||||
@ -37,12 +25,6 @@ stdenv.mkDerivation rec {
|
|||||||
"out"
|
"out"
|
||||||
];
|
];
|
||||||
|
|
||||||
postConfigure = optionalString stdenv.hostPlatform.isDarwin ''
|
|
||||||
# need headers from the Carbon.framework in /System/Library/Frameworks to
|
|
||||||
# compile this on darwin -- not sure how to handle
|
|
||||||
NIX_CFLAGS_COMPILE+=" -I${Carbon}/Library/Frameworks/Carbon.framework/Headers"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Sample Rate Converter for audio";
|
description = "Sample Rate Converter for audio";
|
||||||
homepage = "https://libsndfile.github.io/libsamplerate/";
|
homepage = "https://libsndfile.github.io/libsamplerate/";
|
||||||
|
|||||||
@ -6,9 +6,6 @@
|
|||||||
hdf5,
|
hdf5,
|
||||||
curl,
|
curl,
|
||||||
gfortran,
|
gfortran,
|
||||||
CoreFoundation,
|
|
||||||
CoreServices,
|
|
||||||
SystemConfiguration,
|
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "netcdf-fortran";
|
pname = "netcdf-fortran";
|
||||||
@ -22,23 +19,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gfortran ];
|
nativeBuildInputs = [ gfortran ];
|
||||||
buildInputs =
|
buildInputs = [
|
||||||
[
|
netcdf
|
||||||
netcdf
|
hdf5
|
||||||
hdf5
|
curl
|
||||||
curl
|
];
|
||||||
]
|
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
CoreFoundation
|
|
||||||
CoreServices
|
|
||||||
SystemConfiguration
|
|
||||||
];
|
|
||||||
env.NIX_LDFLAGS = toString (
|
|
||||||
lib.optionals stdenv.hostPlatform.isDarwin [
|
|
||||||
"-F${CoreServices}/Library/Frameworks"
|
|
||||||
"-F${SystemConfiguration}/Library/Frameworks"
|
|
||||||
]
|
|
||||||
);
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
FFLAGS = [ "-std=legacy" ];
|
FFLAGS = [ "-std=legacy" ];
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
cython,
|
cython,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
git,
|
git,
|
||||||
darwin,
|
|
||||||
jsoncpp,
|
jsoncpp,
|
||||||
nsync,
|
nsync,
|
||||||
openssl,
|
openssl,
|
||||||
@ -409,10 +408,8 @@ let
|
|||||||
);
|
);
|
||||||
|
|
||||||
# Note: we cannot do most of this patching at `patch` phase as the deps
|
# Note: we cannot do most of this patching at `patch` phase as the deps
|
||||||
# are not available yet. Framework search paths aren't added by bintools
|
# are not available yet.
|
||||||
# hook. See https://github.com/NixOS/nixpkgs/pull/41914.
|
|
||||||
preBuild = lib.optionalString effectiveStdenv.hostPlatform.isDarwin ''
|
preBuild = lib.optionalString effectiveStdenv.hostPlatform.isDarwin ''
|
||||||
export NIX_LDFLAGS+=" -F${darwin.apple_sdk.frameworks.IOKit}/Library/Frameworks"
|
|
||||||
substituteInPlace ../output/external/rules_cc/cc/private/toolchain/osx_cc_wrapper.sh.tpl \
|
substituteInPlace ../output/external/rules_cc/cc/private/toolchain/osx_cc_wrapper.sh.tpl \
|
||||||
--replace "/usr/bin/install_name_tool" "${cctools}/bin/install_name_tool"
|
--replace "/usr/bin/install_name_tool" "${cctools}/bin/install_name_tool"
|
||||||
substituteInPlace ../output/external/rules_cc/cc/private/toolchain/unix_cc_configure.bzl \
|
substituteInPlace ../output/external/rules_cc/cc/private/toolchain/unix_cc_configure.bzl \
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
PCSC,
|
|
||||||
pcsclite,
|
pcsclite,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
@ -11,11 +10,6 @@
|
|||||||
swig,
|
swig,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
# Package does not support configuring the pcsc library.
|
|
||||||
withApplePCSC = stdenv.hostPlatform.isDarwin;
|
|
||||||
in
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyscard";
|
pname = "pyscard";
|
||||||
version = "2.2.1";
|
version = "2.2.1";
|
||||||
@ -30,9 +24,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeBuildInputs = [ swig ] ++ lib.optionals (!withApplePCSC) [ pkg-config ];
|
nativeBuildInputs = [ swig ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = if withApplePCSC then [ PCSC ] else [ pcsclite ];
|
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ pcsclite ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
@ -41,21 +35,12 @@ buildPythonPackage rec {
|
|||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace-fail 'requires = ["setuptools","swig"]' 'requires = ["setuptools"]'
|
--replace-fail 'requires = ["setuptools","swig"]' 'requires = ["setuptools"]'
|
||||||
''
|
''
|
||||||
+ (
|
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
if withApplePCSC then
|
substituteInPlace setup.py --replace-fail "pkg-config" "$PKG_CONFIG"
|
||||||
''
|
substituteInPlace src/smartcard/scard/winscarddll.c \
|
||||||
substituteInPlace src/smartcard/scard/winscarddll.c \
|
--replace-fail "libpcsclite.so.1" \
|
||||||
--replace-fail "/System/Library/Frameworks/PCSC.framework/PCSC" \
|
"${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||||
"${PCSC}/Library/Frameworks/PCSC.framework/PCSC"
|
'';
|
||||||
''
|
|
||||||
else
|
|
||||||
''
|
|
||||||
substituteInPlace setup.py --replace-fail "pkg-config" "$PKG_CONFIG"
|
|
||||||
substituteInPlace src/smartcard/scard/winscarddll.c \
|
|
||||||
--replace-fail "libpcsclite.so.1" \
|
|
||||||
"${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}"
|
|
||||||
''
|
|
||||||
);
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Smartcard library for python";
|
description = "Smartcard library for python";
|
||||||
|
|||||||
@ -10,9 +10,7 @@
|
|||||||
runLocal,
|
runLocal,
|
||||||
runtimeShell,
|
runtimeShell,
|
||||||
writeScript,
|
writeScript,
|
||||||
writeText,
|
|
||||||
distDir,
|
distDir,
|
||||||
Foundation ? null,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -58,10 +56,6 @@ let
|
|||||||
+ lib.optionalString (stdenv.hostPlatform.isDarwin) ''
|
+ lib.optionalString (stdenv.hostPlatform.isDarwin) ''
|
||||||
--cxxopt=-x --cxxopt=c++ --host_cxxopt=-x --host_cxxopt=c++ \
|
--cxxopt=-x --cxxopt=c++ --host_cxxopt=-x --host_cxxopt=c++ \
|
||||||
--linkopt=-stdlib=libc++ --host_linkopt=-stdlib=libc++ \
|
--linkopt=-stdlib=libc++ --host_linkopt=-stdlib=libc++ \
|
||||||
''
|
|
||||||
+ lib.optionalString (stdenv.hostPlatform.isDarwin && Foundation != null) ''
|
|
||||||
--linkopt=-Wl,-F${Foundation}/Library/Frameworks \
|
|
||||||
--linkopt=-L${darwin.libobjc}/lib \
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -48,10 +48,6 @@
|
|||||||
libxslt,
|
libxslt,
|
||||||
libxcrypt,
|
libxcrypt,
|
||||||
hwdata,
|
hwdata,
|
||||||
ApplicationServices,
|
|
||||||
Carbon,
|
|
||||||
Cocoa,
|
|
||||||
Xplugin,
|
|
||||||
xorg,
|
xorg,
|
||||||
windows,
|
windows,
|
||||||
libgbm,
|
libgbm,
|
||||||
@ -1220,9 +1216,6 @@ self: super:
|
|||||||
bootstrap_cmds
|
bootstrap_cmds
|
||||||
automake
|
automake
|
||||||
autoconf
|
autoconf
|
||||||
Xplugin
|
|
||||||
Carbon
|
|
||||||
Cocoa
|
|
||||||
mesa
|
mesa
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = commonPropagatedBuildInputs ++ [
|
propagatedBuildInputs = commonPropagatedBuildInputs ++ [
|
||||||
@ -1281,7 +1274,6 @@ self: super:
|
|||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
|
||||||
substituteInPlace hw/xquartz/pbproxy/Makefile.in --replace -F/System -F${ApplicationServices}
|
|
||||||
'';
|
'';
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm -fr $out/share/X11/xkb/compiled
|
rm -fr $out/share/X11/xkb/compiled
|
||||||
@ -1322,15 +1314,12 @@ self: super:
|
|||||||
"--without-dtrace"
|
"--without-dtrace"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = old.buildInputs ++ [
|
||||||
old.buildInputs
|
xorg.pixman
|
||||||
++ [
|
xorg.libXfont2
|
||||||
xorg.pixman
|
xorg.xtrans
|
||||||
xorg.libXfont2
|
xorg.libxcvt
|
||||||
xorg.xtrans
|
];
|
||||||
xorg.libxcvt
|
|
||||||
]
|
|
||||||
++ lib.optional stdenv.hostPlatform.isDarwin [ Xplugin ];
|
|
||||||
});
|
});
|
||||||
|
|
||||||
lndir = super.lndir.overrideAttrs (attrs: {
|
lndir = super.lndir.overrideAttrs (attrs: {
|
||||||
|
|||||||
@ -4455,9 +4455,7 @@ with pkgs;
|
|||||||
hdf5 = hdf5-mpi.override { usev110Api = true; };
|
hdf5 = hdf5-mpi.override { usev110Api = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
netcdffortran = callPackage ../development/libraries/netcdf-fortran {
|
netcdffortran = callPackage ../development/libraries/netcdf-fortran { };
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices SystemConfiguration;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (callPackage ../servers/web-apps/netbox { }) netbox_3_7;
|
inherit (callPackage ../servers/web-apps/netbox { }) netbox_3_7;
|
||||||
|
|
||||||
@ -10155,9 +10153,7 @@ with pkgs;
|
|||||||
memHierarchy = "L3:16/64/8192K,L2:16/64/2048K,L1:8/64/16K";
|
memHierarchy = "L3:16/64/8192K,L2:16/64/2048K,L1:8/64/16K";
|
||||||
};
|
};
|
||||||
|
|
||||||
libsamplerate = callPackage ../development/libraries/libsamplerate {
|
libsamplerate = callPackage ../development/libraries/libsamplerate { };
|
||||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon CoreServices;
|
|
||||||
};
|
|
||||||
|
|
||||||
# GNU libc provides libiconv so systems with glibc don't need to
|
# GNU libc provides libiconv so systems with glibc don't need to
|
||||||
# build libiconv separately. Additionally, Apple forked/repackaged
|
# build libiconv separately. Additionally, Apple forked/repackaged
|
||||||
@ -12602,8 +12598,6 @@ with pkgs;
|
|||||||
# so as not to have the newly bound xorg items already in scope, which would
|
# so as not to have the newly bound xorg items already in scope, which would
|
||||||
# have created a cycle.
|
# have created a cycle.
|
||||||
overrides = lib.callPackageWith __splicedPackages ../servers/x11/xorg/overrides.nix {
|
overrides = lib.callPackageWith __splicedPackages ../servers/x11/xorg/overrides.nix {
|
||||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa;
|
|
||||||
inherit (darwin.apple_sdk.libs) Xplugin;
|
|
||||||
inherit (buildPackages.darwin) bootstrap_cmds;
|
inherit (buildPackages.darwin) bootstrap_cmds;
|
||||||
udev = if stdenv.hostPlatform.isLinux then udev else null;
|
udev = if stdenv.hostPlatform.isLinux then udev else null;
|
||||||
libdrm = if stdenv.hostPlatform.isLinux then libdrm else null;
|
libdrm = if stdenv.hostPlatform.isLinux then libdrm else null;
|
||||||
@ -13043,8 +13037,6 @@ with pkgs;
|
|||||||
};
|
};
|
||||||
|
|
||||||
odin = callPackage ../by-name/od/odin/package.nix {
|
odin = callPackage ../by-name/od/odin/package.nix {
|
||||||
inherit (pkgs.darwin.apple_sdk_11_0) MacOSX-SDK;
|
|
||||||
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security;
|
|
||||||
llvmPackages = llvmPackages_18;
|
llvmPackages = llvmPackages_18;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -19208,13 +19200,9 @@ with pkgs;
|
|||||||
|
|
||||||
zncModules = recurseIntoAttrs (callPackage ../applications/networking/znc/modules.nix { });
|
zncModules = recurseIntoAttrs (callPackage ../applications/networking/znc/modules.nix { });
|
||||||
|
|
||||||
bullet = callPackage ../development/libraries/bullet {
|
bullet = callPackage ../development/libraries/bullet { };
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
|
|
||||||
};
|
|
||||||
|
|
||||||
bullet-roboschool = callPackage ../development/libraries/bullet/roboschool-fork.nix {
|
bullet-roboschool = callPackage ../development/libraries/bullet/roboschool-fork.nix { };
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
|
|
||||||
};
|
|
||||||
|
|
||||||
dart = callPackage ../development/compilers/dart { };
|
dart = callPackage ../development/compilers/dart { };
|
||||||
|
|
||||||
|
|||||||
@ -13208,9 +13208,7 @@ self: super: with self; {
|
|||||||
|
|
||||||
pyscaffoldext-travis = callPackage ../development/python-modules/pyscaffoldext-travis { };
|
pyscaffoldext-travis = callPackage ../development/python-modules/pyscaffoldext-travis { };
|
||||||
|
|
||||||
pyscard = callPackage ../development/python-modules/pyscard {
|
pyscard = callPackage ../development/python-modules/pyscard { };
|
||||||
inherit (pkgs.darwin.apple_sdk.frameworks) PCSC;
|
|
||||||
};
|
|
||||||
|
|
||||||
pyscf = callPackage ../development/python-modules/pyscf { };
|
pyscf = callPackage ../development/python-modules/pyscf { };
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user