Skip to content

Commit 23ee964

Browse files
committed
Try to fix CI
1 parent 1620bd0 commit 23ee964

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nix/hydra/packages.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
# stdenv as the original drv (important to determine targetPlatform).
3131
drv.stdenv.mkDerivation {
3232
name = "${exe}";
33-
buildInputs = [ pkgs.cctools ];
34-
phases = [ "buildPhase" "postFixup" ];
33+
buildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [ pkgs.cctools ];
34+
phases = [ "buildPhase" ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ "postFixup" ];
3535
buildPhase = ''
3636
set -e
3737
@@ -47,7 +47,7 @@
4747
sed 's/${placeholder}/${rev}/' ${drv}/bin/${exe} > $out/bin/${exe}
4848
chmod +x $out/bin/${exe}
4949
'';
50-
postFixup = ''
50+
postFixup = pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
5151
install_name_tool -add_rpath ${pkgs.zlib}/lib $out/bin/${exe}
5252
install_name_tool -add_rpath ${pkgs.lmdb}/lib $out/bin/${exe}
5353
install_name_tool -add_rpath ${pkgs.libcxx}/lib $out/bin/${exe}

0 commit comments

Comments
 (0)