Commit eed3d892 authored by Herwig Hochleitner's avatar Herwig Hochleitner
Browse files

openscad-unstable: remove unused submodules

parent 1e14d2c7
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -51,9 +51,7 @@ clangStdenv.mkDerivation rec {
    repo = "openscad";
    rev = "c76900f9a62fcb98c503dcc5ccce380db8ac564b";
    hash = "sha256-R2/8T5+BugVTRIUVLaz6SxKQ1YrtyAGbiE4K1Fuc6bg=";
    # Unfortunately, we can't selectively fetch submodules. It would be good
    # to see that we don't accidentally depend on it.
    fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD
    fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD and manifold
  };

  patches = [ ./test.diff ];
@@ -135,6 +133,14 @@ clangStdenv.mkDerivation rec {
  # tests rely on sysprof which is not available on darwin
  doCheck = !stdenv.hostPlatform.isDarwin;

  # remove unused submodules, to ensure correct dependency usage
  postUnpack = ''
    ( cd $sourceRoot
      for m in submodules/OpenCSG submodules/mimalloc submodules/Clipper2
      do rm -r $m
      done )
  '';

  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
    mkdir $out/Applications
    mv $out/bin/*.app $out/Applications