Skip to content

Commit 3e3afe5

Browse files
authored
pre-commit: unbreak darwin (#414549)
2 parents a6540ad + 1e6cf3c commit 3e3afe5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/by-name/pr/pre-commit/package.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
perl,
1313
cabal-install,
1414
julia,
15+
julia-bin,
1516
pre-commit,
1617
}:
1718

1819
with python3Packages;
1920
let
2021
i686Linux = stdenv.buildPlatform.system == "i686-linux";
22+
julia' = if lib.meta.availableOn stdenv.hostPlatform julia then julia else julia-bin;
2123
in
2224
buildPythonApplication rec {
2325
pname = "pre-commit";
@@ -61,7 +63,7 @@ buildPythonApplication rec {
6163
pytestCheckHook
6264
re-assert
6365
cabal-install
64-
julia
66+
julia'
6567
]
6668
++ lib.optionals (!i686Linux) [
6769
# coursier can be moved back to the main nativeCheckInputs list once we’re able to bootstrap a

0 commit comments

Comments
 (0)