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