mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
openscad-unstable: remove unused submodules
This commit is contained in:
parent
1e14d2c765
commit
eed3d892a9
1 changed files with 9 additions and 3 deletions
|
@ -51,9 +51,7 @@ clangStdenv.mkDerivation rec {
|
||||||
repo = "openscad";
|
repo = "openscad";
|
||||||
rev = "c76900f9a62fcb98c503dcc5ccce380db8ac564b";
|
rev = "c76900f9a62fcb98c503dcc5ccce380db8ac564b";
|
||||||
hash = "sha256-R2/8T5+BugVTRIUVLaz6SxKQ1YrtyAGbiE4K1Fuc6bg=";
|
hash = "sha256-R2/8T5+BugVTRIUVLaz6SxKQ1YrtyAGbiE4K1Fuc6bg=";
|
||||||
# Unfortunately, we can't selectively fetch submodules. It would be good
|
fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD and manifold
|
||||||
# to see that we don't accidentally depend on it.
|
|
||||||
fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD
|
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./test.diff ];
|
patches = [ ./test.diff ];
|
||||||
|
@ -135,6 +133,14 @@ clangStdenv.mkDerivation rec {
|
||||||
# tests rely on sysprof which is not available on darwin
|
# tests rely on sysprof which is not available on darwin
|
||||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
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 ''
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
mkdir $out/Applications
|
mkdir $out/Applications
|
||||||
mv $out/bin/*.app $out/Applications
|
mv $out/bin/*.app $out/Applications
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue