mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
treewide: reformat files which need reformatting after
`treewide: replace stdenv.is with stdenv.hostPlatform.is`
This commit is contained in:
parent
e0464e4788
commit
63fa53d97c
@ -84,8 +84,10 @@
|
||||
}:
|
||||
|
||||
let
|
||||
embreeSupport = (!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
|
||||
openImageDenoiseSupport = (!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
|
||||
embreeSupport =
|
||||
(!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
|
||||
openImageDenoiseSupport =
|
||||
(!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
|
||||
openUsdSupport = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
python3 = python3Packages.python;
|
||||
@ -328,7 +330,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
blenderExecutable =
|
||||
placeholder "out"
|
||||
+ (if stdenv.hostPlatform.isDarwin then "/Applications/Blender.app/Contents/MacOS/Blender" else "/bin/blender");
|
||||
+ (
|
||||
if stdenv.hostPlatform.isDarwin then
|
||||
"/Applications/Blender.app/Contents/MacOS/Blender"
|
||||
else
|
||||
"/bin/blender"
|
||||
);
|
||||
|
||||
postInstall =
|
||||
lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
|
@ -79,18 +79,21 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
appstream-glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk
|
||||
girara
|
||||
libintl
|
||||
sqlite
|
||||
glib
|
||||
file
|
||||
librsvg
|
||||
check
|
||||
json-glib
|
||||
texlive.bin.core
|
||||
] ++ lib.optional stdenv.hostPlatform.isLinux libseccomp ++ lib.optional stdenv.hostPlatform.isDarwin gtk-mac-integration;
|
||||
buildInputs =
|
||||
[
|
||||
gtk
|
||||
girara
|
||||
libintl
|
||||
sqlite
|
||||
glib
|
||||
file
|
||||
librsvg
|
||||
check
|
||||
json-glib
|
||||
texlive.bin.core
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isLinux libseccomp
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin gtk-mac-integration;
|
||||
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
|
||||
|
@ -59,7 +59,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
env =
|
||||
lib.optionalAttrs stdenv.cc.isClang { CXXFLAGS = "-std=c++11"; }
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isDarwin { NIX_CFLAGS_LINK = "-headerpad_max_install_names"; };
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
NIX_CFLAGS_LINK = "-headerpad_max_install_names";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
export LD=$CC
|
||||
|
@ -33,7 +33,9 @@ rustPlatform.buildRustPackage rec {
|
||||
protobuf
|
||||
];
|
||||
|
||||
buildInputs = [ bzip2 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
buildInputs = [
|
||||
bzip2
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
meta = {
|
||||
description = "Sign (and root) Android A/B OTAs with custom keys while preserving Android Verified Boot";
|
||||
|
@ -67,7 +67,9 @@ buildNpmPackage rec {
|
||||
find $out/share/chatd/node_modules -name '*.exe' -or -name '*.dll' -or -name '*.pdb' -delete
|
||||
rm -rf ${
|
||||
lib.concatStringsSep " " (
|
||||
(lib.optional (!stdenv.hostPlatform.isx86_64) "$out/share/chatd/node_modules/onnxruntime-node/bin/napi-v3/*/x64")
|
||||
(lib.optional (
|
||||
!stdenv.hostPlatform.isx86_64
|
||||
) "$out/share/chatd/node_modules/onnxruntime-node/bin/napi-v3/*/x64")
|
||||
++ (lib.optional (
|
||||
!stdenv.hostPlatform.isAarch64
|
||||
) "$out/share/chatd/node_modules/onnxruntime-node/bin/napi-v3/*/arm64")
|
||||
|
@ -19,7 +19,9 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-fYx+SQdQMnNSygr0/Y4zEPtqfQPZYmQUq3ndi1HlXuE=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ];
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
];
|
||||
|
||||
# error: linker `aarch64-linux-gnu-gcc` not found
|
||||
postPatch = ''
|
||||
|
@ -57,7 +57,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 build-${if stdenv.hostPlatform.isDarwin then "mac" else "linux"}/release/debase $out/bin/debase
|
||||
install -Dm755 build-${
|
||||
if stdenv.hostPlatform.isDarwin then "mac" else "linux"
|
||||
}/release/debase $out/bin/debase
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
@ -22,7 +22,9 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-LEOORHD0j+HVl/fB9Q2xVZ2AxZKsPE5SeOS1ZsKwTSo=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ];
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
which
|
||||
|
@ -106,7 +106,10 @@ stdenv'.mkDerivation {
|
||||
postFixup =
|
||||
let
|
||||
binary =
|
||||
if stdenv.hostPlatform.isDarwin then "Applications/flameshot.app/Contents/MacOS/flameshot" else "bin/flameshot";
|
||||
if stdenv.hostPlatform.isDarwin then
|
||||
"Applications/flameshot.app/Contents/MacOS/flameshot"
|
||||
else
|
||||
"bin/flameshot";
|
||||
in
|
||||
''
|
||||
wrapProgram $out/${binary} \
|
||||
|
@ -23,7 +23,8 @@ buildGoModule rec {
|
||||
subPackages = ".";
|
||||
|
||||
preBuild =
|
||||
lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0")
|
||||
lib.optionalString
|
||||
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0")
|
||||
''
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.15
|
||||
'';
|
||||
|
@ -61,13 +61,17 @@ let
|
||||
libsForQt5.qtbase
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
doxygen
|
||||
libsForQt5.wrapQtAppsHook
|
||||
pkg-config
|
||||
python3Packages.python
|
||||
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ darwin.autoSignDarwinBinariesHook ];
|
||||
nativeBuildInputs =
|
||||
[
|
||||
cmake
|
||||
doxygen
|
||||
libsForQt5.wrapQtAppsHook
|
||||
pkg-config
|
||||
python3Packages.python
|
||||
]
|
||||
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
|
||||
darwin.autoSignDarwinBinariesHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jrl-cmakemodules
|
||||
|
@ -29,7 +29,9 @@ buildNpmPackage rec {
|
||||
CSC_IDENTITY_AUTO_DISCOVERY = "false";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ];
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ];
|
||||
|
||||
npmBuildScript = "build:src";
|
||||
|
||||
|
@ -142,13 +142,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libtapi
|
||||
llvm
|
||||
libunwind
|
||||
openssl
|
||||
xar
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.dyld ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libdispatch ];
|
||||
buildInputs =
|
||||
[
|
||||
libtapi
|
||||
llvm
|
||||
libunwind
|
||||
openssl
|
||||
xar
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.dyld ]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ libdispatch ];
|
||||
|
||||
# Note for overrides: ld64 cannot be built as a debug build because of UB in its iteration implementations,
|
||||
# which trigger libc++ debug assertions due to trying to take the address of the first element of an emtpy vector.
|
||||
|
@ -20,70 +20,71 @@ let
|
||||
sources = lib.importJSON ./pin.json;
|
||||
in
|
||||
# https://github.com/NixOS/nixpkgs/issues/314160
|
||||
(if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv).mkDerivation (finalAttr: {
|
||||
pname = "maa-assistant-arknights" + lib.optionalString isBeta "-beta";
|
||||
version = if isBeta then sources.beta.version else sources.stable.version;
|
||||
(if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv).mkDerivation
|
||||
(finalAttr: {
|
||||
pname = "maa-assistant-arknights" + lib.optionalString isBeta "-beta";
|
||||
version = if isBeta then sources.beta.version else sources.stable.version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MaaAssistantArknights";
|
||||
repo = "MaaAssistantArknights";
|
||||
rev = "v${finalAttr.version}";
|
||||
hash = if isBeta then sources.beta.hash else sources.stable.hash;
|
||||
};
|
||||
src = fetchFromGitHub {
|
||||
owner = "MaaAssistantArknights";
|
||||
repo = "MaaAssistantArknights";
|
||||
rev = "v${finalAttr.version}";
|
||||
hash = if isBeta then sources.beta.hash else sources.stable.hash;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
asio
|
||||
cmake
|
||||
fastdeploy.cmake
|
||||
] ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc ];
|
||||
nativeBuildInputs = [
|
||||
asio
|
||||
cmake
|
||||
fastdeploy.cmake
|
||||
] ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc ];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
fastdeploy
|
||||
libcpr
|
||||
onnxruntime
|
||||
opencv
|
||||
]
|
||||
++ lib.optionals cudaSupport (
|
||||
with cudaPackages;
|
||||
buildInputs =
|
||||
[
|
||||
cuda_cccl # cub/cub.cuh
|
||||
libcublas # cublas_v2.h
|
||||
libcurand # curand.h
|
||||
libcusparse # cusparse.h
|
||||
libcufft # cufft.h
|
||||
cudnn # cudnn.h
|
||||
cuda_cudart
|
||||
fastdeploy
|
||||
libcpr
|
||||
onnxruntime
|
||||
opencv
|
||||
]
|
||||
);
|
||||
++ lib.optionals cudaSupport (
|
||||
with cudaPackages;
|
||||
[
|
||||
cuda_cccl # cub/cub.cuh
|
||||
libcublas # cublas_v2.h
|
||||
libcurand # curand.h
|
||||
libcusparse # cusparse.h
|
||||
libcufft # cufft.h
|
||||
cudnn # cudnn.h
|
||||
cuda_cudart
|
||||
]
|
||||
);
|
||||
|
||||
cmakeBuildType = "None";
|
||||
cmakeBuildType = "None";
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "INSTALL_FLATTEN" false)
|
||||
(lib.cmakeBool "INSTALL_PYTHON" true)
|
||||
(lib.cmakeBool "INSTALL_RESOURCE" true)
|
||||
(lib.cmakeBool "USE_MAADEPS" false)
|
||||
(lib.cmakeFeature "MAA_VERSION" "v${finalAttr.version}")
|
||||
];
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
||||
(lib.cmakeBool "INSTALL_FLATTEN" false)
|
||||
(lib.cmakeBool "INSTALL_PYTHON" true)
|
||||
(lib.cmakeBool "INSTALL_RESOURCE" true)
|
||||
(lib.cmakeBool "USE_MAADEPS" false)
|
||||
(lib.cmakeFeature "MAA_VERSION" "v${finalAttr.version}")
|
||||
];
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
postPatch = ''
|
||||
cp -v ${fastdeploy.cmake}/Findonnxruntime.cmake cmake/
|
||||
'';
|
||||
postPatch = ''
|
||||
cp -v ${fastdeploy.cmake}/Findonnxruntime.cmake cmake/
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/${finalAttr.pname}
|
||||
mv $out/{Python,resource} $out/share/${finalAttr.pname}
|
||||
'';
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/${finalAttr.pname}
|
||||
mv $out/{Python,resource} $out/share/${finalAttr.pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Arknights assistant";
|
||||
homepage = "https://github.com/MaaAssistantArknights/MaaAssistantArknights";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ Cryolitia ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
})
|
||||
meta = with lib; {
|
||||
description = "Arknights assistant";
|
||||
homepage = "https://github.com/MaaAssistantArknights/MaaAssistantArknights";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ Cryolitia ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
})
|
||||
|
@ -63,7 +63,8 @@ let
|
||||
|
||||
metalSupport =
|
||||
assert accelIsValid;
|
||||
(acceleration == "metal") || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && (acceleration == null));
|
||||
(acceleration == "metal")
|
||||
|| (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && (acceleration == null));
|
||||
|
||||
darwinBuildInputs =
|
||||
with darwin.apple_sdk.frameworks;
|
||||
@ -186,7 +187,9 @@ rustPlatform.buildRustPackage rec {
|
||||
withMkl = lib.optionalAttrs (stdenv.hostPlatform == "x86_64-linux") (
|
||||
mistral-rs.override { acceleration = "mkl"; }
|
||||
);
|
||||
withCuda = lib.optionalAttrs stdenv.hostPlatform.isLinux (mistral-rs.override { acceleration = "cuda"; });
|
||||
withCuda = lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
||||
mistral-rs.override { acceleration = "cuda"; }
|
||||
);
|
||||
withMetal = lib.optionalAttrs (stdenv.hostPlatform == "aarch64-darwin") (
|
||||
mistral-rs.override { acceleration = "metal"; }
|
||||
);
|
||||
|
@ -25,7 +25,9 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-9HLbGC6j0Wq/lG//CeEAfnYzlGG14CnDpmluL1moHWQ=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk_11_0.frameworks.Security ];
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk_11_0.frameworks.Security
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pandoc
|
||||
installShellFiles
|
||||
|
@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkg-config ] ++ lib.optional enableGui libsForQt5.wrapQtAppsHook;
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ (if enableGui then [ libsForQt5.qtcharts ] else [ expat ]) ++ lib.optional stdenv.hostPlatform.isDarwin expat;
|
||||
++ (if enableGui then [ libsForQt5.qtcharts ] else [ expat ])
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin expat;
|
||||
|
||||
configureFlags =
|
||||
[ "--with-libssl" ]
|
||||
|
@ -43,9 +43,11 @@ stdenv.mkDerivation rec {
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
] ++ lib.optional stdenv.hostPlatform.isLinux dpkg ++ lib.optional stdenv.hostPlatform.isDarwin unzip;
|
||||
nativeBuildInputs =
|
||||
[
|
||||
makeWrapper
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isLinux dpkg ++ lib.optional stdenv.hostPlatform.isDarwin unzip;
|
||||
|
||||
installPhase =
|
||||
let
|
||||
|
@ -38,7 +38,9 @@ rustPlatform.buildRustPackage rec {
|
||||
makeWrapper
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ (writeScriptBin "diskutil" "") ];
|
||||
|
||||
buildInputs = [ python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
buildInputs = [
|
||||
python3
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
preBuild = ''
|
||||
export HOME=$TMPDIR
|
||||
|
@ -24,9 +24,11 @@ rustPlatform.buildRustPackage {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ CoreServices ]);
|
||||
buildInputs =
|
||||
[
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ CoreServices ]);
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
|
@ -36,7 +36,9 @@ rustPlatform.buildRustPackage {
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ CoreServices ]);
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
|
||||
with darwin.apple_sdk.frameworks; [ CoreServices ]
|
||||
);
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/rustlings --suffix PATH : ${
|
||||
|
@ -21,7 +21,9 @@ buildPythonApplication rec {
|
||||
hash = "sha256-/ms2RESnV3bsJpK1zYYLHNUu1FtA6PntaseTbKMfUMc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems ] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
|
@ -39,7 +39,9 @@ rustPlatform.buildRustPackage rec {
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
checkFlags =
|
||||
[
|
||||
|
@ -146,6 +146,7 @@ stdenv'.mkDerivation (finalAttrs: {
|
||||
];
|
||||
sourceProvenance =
|
||||
with lib.sourceTypes;
|
||||
lib.optionals stdenv.hostPlatform.isx86_64 [ fromSource ] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ binaryNativeCode ];
|
||||
lib.optionals stdenv.hostPlatform.isx86_64 [ fromSource ]
|
||||
++ lib.optionals stdenv.hostPlatform.isAarch64 [ binaryNativeCode ];
|
||||
};
|
||||
})
|
||||
|
@ -46,7 +46,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
passthru = {
|
||||
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux { default = nixosTests.terminal-emulators.zutty; };
|
||||
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
default = nixosTests.terminal-emulators.zutty;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -39,7 +39,8 @@
|
||||
libdecor,
|
||||
pipewireSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
||||
pipewire, # NOTE: must be built with SDL2 without pipewire support
|
||||
pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
||||
pulseaudioSupport ?
|
||||
config.pulseaudio or stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
||||
libpulseaudio,
|
||||
AudioUnit,
|
||||
Cocoa,
|
||||
|
@ -31,7 +31,11 @@ stdenv.mkDerivation rec {
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
cmakeFlags = [ (lib.cmakeBool "GRAPHBLAS_USE_JIT" (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64))) ];
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "GRAPHBLAS_USE_JIT" (
|
||||
!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)
|
||||
))
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Graph algorithms in the language of linear algebra";
|
||||
|
@ -60,7 +60,9 @@ buildPythonPackage rec {
|
||||
|
||||
# timing-based test flaky on Darwin
|
||||
# https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
|
||||
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_step_decorator_async_run_until_complete" ];
|
||||
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"test_step_decorator_async_run_until_complete"
|
||||
];
|
||||
|
||||
postCheck = ''
|
||||
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
|
||||
|
@ -103,7 +103,9 @@ buildPythonPackage rec {
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_block" ];
|
||||
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "cherrypy/test/test_config_server.py" ];
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"cherrypy/test/test_config_server.py"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
|
@ -37,7 +37,9 @@ buildPythonPackage rec {
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
buildInputs = [ libiconv ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
buildInputs = [
|
||||
libiconv
|
||||
] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
pyyaml
|
||||
|
@ -51,7 +51,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "construct" ];
|
||||
|
||||
disabledTests = [ "test_benchmarks" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_multiprocessing" ];
|
||||
disabledTests = [
|
||||
"test_benchmarks"
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_multiprocessing" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Powerful declarative parser (and builder) for binary data";
|
||||
|
@ -127,7 +127,9 @@ buildPythonPackage rec {
|
||||
"tests/test_dse.py"
|
||||
"tests/test_gradient.py"
|
||||
]
|
||||
++ lib.optionals ((stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin) [ "tests/test_dle.py" ];
|
||||
++ lib.optionals (
|
||||
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin
|
||||
) [ "tests/test_dle.py" ];
|
||||
|
||||
pythonImportsCheck = [ "devito" ];
|
||||
|
||||
|
@ -30,11 +30,14 @@ let
|
||||
hash = "sha256-cdB8zJUUyyL+WdmJmVd2ZeqrV+FvZE0EM2rgtLriNLw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cloudpickle
|
||||
importlib-metadata
|
||||
toml
|
||||
] ++ lib.optional stdenv.hostPlatform.isLinux pyinotify ++ lib.optional stdenv.hostPlatform.isDarwin macfsevents;
|
||||
propagatedBuildInputs =
|
||||
[
|
||||
cloudpickle
|
||||
importlib-metadata
|
||||
toml
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isLinux pyinotify
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin macfsevents;
|
||||
|
||||
nativeCheckInputs = [
|
||||
configclass
|
||||
|
@ -19,7 +19,9 @@ buildPythonPackage rec {
|
||||
|
||||
# FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent
|
||||
# segfaults in the testsuite that end up failing the tests in a background thread (in myapp)
|
||||
nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ watchdog ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx
|
||||
|
@ -29,7 +29,8 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
broken =
|
||||
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";
|
||||
homepage = "https://www.lfd.uci.edu/~gohlke/";
|
||||
maintainers = [ maintainers.tbenst ];
|
||||
|
@ -65,7 +65,9 @@ buildPythonPackage rec {
|
||||
|
||||
# FIXME: Only add "sRGB Profile.icc" to __impureHostDeps once
|
||||
# https://github.com/NixOS/nix/issues/9301 is fixed.
|
||||
__impureHostDeps = lib.optionals stdenv.hostPlatform.isDarwin [ "/System/Library/ColorSync/Profiles" ];
|
||||
__impureHostDeps = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"/System/Library/ColorSync/Profiles"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
exiftool
|
||||
|
@ -124,7 +124,8 @@ buildPythonPackage rec {
|
||||
# Timing-based, flaky on darwin and possibly others
|
||||
"test_idle_timer"
|
||||
]
|
||||
++ lib.optionals (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13")
|
||||
++ lib.optionals
|
||||
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13")
|
||||
[
|
||||
# Flaky with older low-res mtime on darwin < 10.13 (#143987)
|
||||
"test_second_load_timestamp"
|
||||
|
@ -72,7 +72,8 @@ buildPythonPackage rec {
|
||||
let
|
||||
testName = "${if withOnnx then "withOnnx" else "withoutOnnx"}-${method}";
|
||||
# This test fails in the sandbox on aarch64-linux, see https://github.com/microsoft/onnxruntime/issues/10038
|
||||
skipTest = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64 && withOnnx && method == "rivaGan";
|
||||
skipTest =
|
||||
stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64 && withOnnx && method == "rivaGan";
|
||||
in
|
||||
lib.optionalAttrs (!skipTest) {
|
||||
"${testName}" = callPackage ./tests/cli.nix {
|
||||
|
@ -54,7 +54,9 @@ buildPythonPackage rec {
|
||||
(lib.cmakeBool "MATERIALX_BUILD_OIIO" true)
|
||||
(lib.cmakeBool "MATERIALX_BUILD_PYTHON" true)
|
||||
# don't build MSL shader back-end on x86_x64-darwin, as it requires a newer SDK with metal support
|
||||
(lib.cmakeBool "MATERIALX_BUILD_GEN_MSL" (stdenv.hostPlatform.isLinux || (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin)))
|
||||
(lib.cmakeBool "MATERIALX_BUILD_GEN_MSL" (
|
||||
stdenv.hostPlatform.isLinux || (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin)
|
||||
))
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "MaterialX" ];
|
||||
|
@ -114,6 +114,7 @@ buildPythonPackage rec {
|
||||
changelog = "https://github.com/open-mmlab/mmengine/releases/tag/v${version}";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ rxiao ];
|
||||
broken = stdenv.hostPlatform.isDarwin || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
|
||||
broken =
|
||||
stdenv.hostPlatform.isDarwin || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
|
||||
};
|
||||
}
|
||||
|
@ -34,7 +34,8 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "modeled" ];
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
broken =
|
||||
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
description = "Universal data modeling for Python";
|
||||
homepage = "https://github.com/modeled/modeled";
|
||||
license = licenses.lgpl3Only;
|
||||
|
@ -60,7 +60,8 @@ buildPythonPackage rec {
|
||||
hash = "sha256-akwLIB5YUbnDiaQXX/K5YLXzWlTYWZG51dtxbSFxPt0=";
|
||||
};
|
||||
|
||||
stdenv = if python.stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else python.stdenv;
|
||||
stdenv =
|
||||
if python.stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else python.stdenv;
|
||||
|
||||
outputs = [ "out" ] ++ lib.optional withDocs "doc";
|
||||
|
||||
|
@ -44,7 +44,8 @@ import ../pillow/generic.nix (
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
broken =
|
||||
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
homepage = "https://python-pillow.github.io/pillow-perf/";
|
||||
description = "Friendly PIL fork - SIMD version";
|
||||
longDescription = ''
|
||||
|
@ -39,7 +39,8 @@ buildPythonPackage rec {
|
||||
|
||||
preBuild =
|
||||
let
|
||||
ldLibraryPathEnvName = if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
|
||||
ldLibraryPathEnvName =
|
||||
if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
|
||||
in
|
||||
''
|
||||
# required for the custom _find_library function in setup.py
|
||||
|
@ -71,6 +71,7 @@ buildPythonPackage rec {
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
# x86-linux: test_encode.py::TestEncodeBuffer failures
|
||||
# darwin: numerous test failures, seemingly due to issues setting up test data
|
||||
broken = (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
|
||||
broken =
|
||||
(stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
|
@ -60,7 +60,9 @@ buildPythonPackage (
|
||||
setuptools
|
||||
]
|
||||
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ libsForQt5.qtdeclarative ]
|
||||
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ autoSignDarwinBinariesHook ];
|
||||
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
|
||||
autoSignDarwinBinariesHook
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
|
@ -78,7 +78,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
# "Couldn't find libclang.dylib You will likely need to add it manually to PATH to ensure the build succeeds."
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { LLVM_INSTALL_DIR = "${llvmPackages.libclang.lib}/lib"; };
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
LLVM_INSTALL_DIR = "${llvmPackages.libclang.lib}/lib";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
|
@ -29,15 +29,18 @@ buildPythonPackage rec {
|
||||
|
||||
patches = [ ./replace-python-first.patch ];
|
||||
|
||||
buildInputs = [
|
||||
bash
|
||||
subversion
|
||||
apr
|
||||
aprutil
|
||||
expat
|
||||
neon
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [ e2fsprogs ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ gcc ];
|
||||
buildInputs =
|
||||
[
|
||||
bash
|
||||
subversion
|
||||
apr
|
||||
aprutil
|
||||
expat
|
||||
neon
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ e2fsprogs ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ gcc ];
|
||||
|
||||
preConfigure = ''
|
||||
cd Source
|
||||
|
@ -36,7 +36,9 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "pytest_flask" ];
|
||||
|
||||
pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [ "--ignore=tests/test_live_server.py" ];
|
||||
pytestFlagsArray = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"--ignore=tests/test_live_server.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Set of pytest fixtures to test Flask applications";
|
||||
|
@ -187,7 +187,9 @@ buildPythonPackage {
|
||||
#
|
||||
# ldr x0, [x0, ___stack_chk_guard];momd
|
||||
#
|
||||
hardeningDisable = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ "stackprotector" ];
|
||||
hardeningDisable = lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [
|
||||
"stackprotector"
|
||||
];
|
||||
|
||||
# remove references to dev dependencies
|
||||
postInstall = ''
|
||||
|
@ -28,7 +28,8 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
broken =
|
||||
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
||||
description = "XMPP library for Python";
|
||||
license = licenses.mit;
|
||||
homepage = "http://sleekxmpp.com/";
|
||||
|
@ -21,7 +21,8 @@
|
||||
pytestCheckHook,
|
||||
}:
|
||||
let
|
||||
stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv { darwinMinVersion = "10.14"; } else stdenv;
|
||||
stdenv' =
|
||||
if stdenv.hostPlatform.isDarwin then overrideSDK stdenv { darwinMinVersion = "10.14"; } else stdenv;
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "sourmash";
|
||||
|
@ -60,7 +60,9 @@ buildPythonPackage rec {
|
||||
|
||||
# On x86_darwin, this test fails with "Fatal Python error: Aborted"
|
||||
# when sandbox = true.
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "spectral_cube/tests/test_visualization.py" ];
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"spectral_cube/tests/test_visualization.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "spectral_cube" ];
|
||||
|
||||
|
@ -296,7 +296,8 @@ buildPythonPackage rec {
|
||||
# error: no member named 'aligned_alloc' in the global namespace; did you mean simply 'aligned_alloc'
|
||||
# This lib overrided aligned_alloc hence the error message. Tltr: his function is linkable but not in header.
|
||||
+
|
||||
lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0")
|
||||
lib.optionalString
|
||||
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0")
|
||||
''
|
||||
substituteInPlace third_party/pocketfft/pocketfft_hdronly.h --replace-fail '#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER))
|
||||
inline void *aligned_alloc(size_t align, size_t size)' '#if 0
|
||||
|
@ -175,7 +175,9 @@ buildPythonPackage rec {
|
||||
++ passthru.optional-dependencies.http2
|
||||
++ passthru.optional-dependencies.serial
|
||||
# not supported on aarch64-darwin: https://github.com/pyca/pyopenssl/issues/873
|
||||
++ lib.optionals (!(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)) passthru.optional-dependencies.tls;
|
||||
++ lib.optionals (
|
||||
!(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)
|
||||
) passthru.optional-dependencies.tls;
|
||||
|
||||
checkPhase = ''
|
||||
export SOURCE_DATE_EPOCH=315532800
|
||||
|
@ -26,7 +26,9 @@ buildPythonPackage rec {
|
||||
|
||||
# force kqueue on x86_64-darwin, because our api version does
|
||||
# not support fsevents
|
||||
patches = lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isAarch64) [ ./force-kqueue.patch ];
|
||||
patches = lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isAarch64) [
|
||||
./force-kqueue.patch
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
||||
|
||||
|
@ -72,10 +72,14 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False
|
||||
"test_quirks_v2"
|
||||
] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [ "test_periodic_scan_priority" ];
|
||||
disabledTests =
|
||||
[
|
||||
# assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False
|
||||
"test_quirks_v2"
|
||||
]
|
||||
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [
|
||||
"test_periodic_scan_priority"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require network access
|
||||
|
@ -55,7 +55,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
-e '/cxx_/s,$cc,clang++,'
|
||||
'';
|
||||
|
||||
ninjaFlags = [ "-fcompile/ninja/${if stdenv.hostPlatform.isDarwin then "macos" else "linux"}.ninja" ];
|
||||
ninjaFlags = [
|
||||
"-fcompile/ninja/${if stdenv.hostPlatform.isDarwin then "macos" else "linux"}.ninja"
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
popd
|
||||
|
@ -25,7 +25,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--replace-fail 'debuggerCommand:' 'debuggerCommand: ${gdb}/bin/gdb'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ imagemagick ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
|
||||
nativeBuildInputs = [
|
||||
imagemagick
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
|
||||
|
||||
buildInputs = [
|
||||
motif
|
||||
|
@ -27,7 +27,9 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
|
@ -27,7 +27,9 @@ rustPlatform.buildRustPackage rec {
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security ++ [ zstd ];
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security ++ [
|
||||
zstd
|
||||
];
|
||||
|
||||
# Most tests rely on external resources and build artifacts.
|
||||
# Disabling check here to work with build sandboxing.
|
||||
|
@ -45,6 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
defelo
|
||||
];
|
||||
broken =
|
||||
stdenv.hostPlatform.isAarch64 || ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened);
|
||||
stdenv.hostPlatform.isAarch64
|
||||
|| ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened);
|
||||
};
|
||||
})
|
||||
|
@ -52,7 +52,9 @@ buildNpmPackage rec {
|
||||
|
||||
nativeBuildInputs = [ git ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools ];
|
||||
|
||||
buildInputs = [ nodePackages.node-gyp-build ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ];
|
||||
buildInputs = [
|
||||
nodePackages.node-gyp-build
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ];
|
||||
|
||||
env.PYTHON = "${python3}/bin/python";
|
||||
|
||||
|
@ -23,10 +23,13 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
buildInputs = [
|
||||
ncurses
|
||||
openssl
|
||||
] ++ lib.optionals withGeolocation [ libmaxminddb ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ];
|
||||
buildInputs =
|
||||
[
|
||||
ncurses
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals withGeolocation [ libmaxminddb ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-utf8"
|
||||
|
@ -19,7 +19,9 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-1w3DYP69aOphoqbsZIF9aX56Lftg2niKClmImLTa5DE=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation ];
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-w"
|
||||
|
Loading…
Reference in New Issue
Block a user