Skip to content

Commit

Permalink
Merge pull request #121114 from samuela/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored May 25, 2021
2 parents f2f00af + 1e7f3bf commit db2166a
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions pkgs/development/compilers/julia/1.5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ stdenv.mkDerivation rec {

postPatch = ''
patchShebangs . contrib
for i in backtrace cmdlineargs; do
mv test/$i.jl{,.off}
touch test/$i.jl
done
rm stdlib/Sockets/test/runtests.jl && touch stdlib/Sockets/test/runtests.jl
rm stdlib/Distributed/test/runtests.jl && touch stdlib/Distributed/test/runtests.jl
# LibGit2 fails with a weird error, so we skip it as well now
rm stdlib/LibGit2/test/runtests.jl && touch stdlib/LibGit2/test/runtests.jl
sed -e 's/Invalid Content-Type:/invalid Content-Type:/g' -i ./stdlib/LibGit2/test/libgit2.jl
sed -e 's/Failed to resolve /failed to resolve /g' -i ./stdlib/LibGit2/test/libgit2.jl
'';

dontUseCmakeConfigure = true;
Expand Down Expand Up @@ -112,11 +102,6 @@ stdenv.mkDerivation rec {
openspecfun pcre2 lapack
];

# Julia's tests require read/write access to $HOME
preCheck = ''
export HOME="$NIX_BUILD_TOP"
'';

preBuild = ''
sed -e '/^install:/s@[^ ]*/doc/[^ ]*@@' -i Makefile
sed -e '/[$](DESTDIR)[$](docdir)/d' -i Makefile
Expand All @@ -125,6 +110,13 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

# Julia's tests require read/write access to $HOME
preCheck = ''
export HOME="$NIX_BUILD_TOP"
'';
doCheck = true;
checkTarget = "test";

postInstall = ''
# Symlink shared libraries from LD_LIBRARY_PATH into lib/julia,
# as using a wrapper with LD_LIBRARY_PATH causes segmentation
Expand All @@ -148,6 +140,8 @@ stdenv.mkDerivation rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ raskin rob garrison ];
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" "aarch64-linux" ];
broken = stdenv.isi686;
# Unfortunately, this derivation does not pass Julia's test suite. See
# https://github.com/NixOS/nixpkgs/pull/121114.
broken = true;
};
}

0 comments on commit db2166a

Please sign in to comment.