mindustry: More uniform source cleanup
This commit is contained in:
parent
3cd3cbd2d3
commit
138be4cfbb
1 changed files with 7 additions and 11 deletions
|
@ -91,14 +91,14 @@ let
|
|||
};
|
||||
|
||||
cleanupMindustrySrc = ''
|
||||
pushd Mindustry
|
||||
# Ensure the prebuilt shared objects don't accidentally get shipped
|
||||
rm -r Arc/natives/natives-*/libs/*
|
||||
rm -r Arc/backends/backend-*/libs/*
|
||||
|
||||
# Remove unbuildable iOS stuff
|
||||
sed -i '/^project(":ios"){/,/^}/d' build.gradle
|
||||
sed -i '/robo(vm|VM)/d' build.gradle
|
||||
rm ios/build.gradle
|
||||
|
||||
popd
|
||||
sed -i '/^project(":ios"){/,/^}/d' Mindustry/build.gradle
|
||||
sed -i '/robo(vm|VM)/d' Mindustry/build.gradle
|
||||
rm Mindustry/ios/build.gradle
|
||||
'';
|
||||
|
||||
# fake build to pre-download deps into fixed-output derivation
|
||||
|
@ -134,11 +134,7 @@ assert lib.assertMsg (enableClient || enableServer)
|
|||
stdenv.mkDerivation rec {
|
||||
inherit pname version unpackPhase patches;
|
||||
|
||||
postPatch = ''
|
||||
# ensure the prebuilt shared objects don't accidentally get shipped
|
||||
rm -r Arc/natives/natives-*/libs/*
|
||||
rm -r Arc/backends/backend-*/libs/*
|
||||
'' + cleanupMindustrySrc;
|
||||
postPatch = cleanupMindustrySrc;
|
||||
|
||||
buildInputs = lib.optionals enableClient [
|
||||
SDL2
|
||||
|
|
Loading…
Reference in a new issue