1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-08 02:38:11 +09:00

pre-commit: unbreak darwin (#414549)

This commit is contained in:
Aleksana 2025-06-07 16:35:48 +08:00 committed by GitHub
commit 3e3afe5174
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -12,12 +12,14 @@
perl,
cabal-install,
julia,
julia-bin,
pre-commit,
}:
with python3Packages;
let
i686Linux = stdenv.buildPlatform.system == "i686-linux";
julia' = if lib.meta.availableOn stdenv.hostPlatform julia then julia else julia-bin;
in
buildPythonApplication rec {
pname = "pre-commit";
@ -61,7 +63,7 @@ buildPythonApplication rec {
pytestCheckHook
re-assert
cabal-install
julia
julia'
]
++ lib.optionals (!i686Linux) [
# coursier can be moved back to the main nativeCheckInputs list once were able to bootstrap a