mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
micropython: reduce source size to within Hydra limit
Uncompressed NAR goes from ~3.3G to ~970M.
This commit is contained in:
parent
d3b08d1bd0
commit
2e0d57b792
@ -15,10 +15,21 @@ stdenv.mkDerivation rec {
|
||||
owner = "micropython";
|
||||
repo = "micropython";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-sdok17HvKub/sI+8cAIIDaLD/3mu8yXXqrTOej8/UfU=";
|
||||
sha256 = "sha256-7AA9n6UQchY6POkOp1VWAOAo87uRJSeCBhgvVXLoE04=";
|
||||
fetchSubmodules = true;
|
||||
|
||||
# remove unused libaries from rp2 port's SDK. we leave this and the other
|
||||
# ports around for users who want to override makeFlags flags to build them.
|
||||
# https://github.com/micropython/micropython/blob/a61c446c0b34e82aeb54b9770250d267656f2b7f/ports/rp2/CMakeLists.txt#L17-L22
|
||||
#
|
||||
# shrinks uncompressed NAR by ~2.4G (though it is still large). there
|
||||
# doesn't seem to be a way to avoid fetching them in the first place.
|
||||
postFetch = ''
|
||||
rm -rf $out/lib/pico-sdk/lib/{tinyusb,lwip,btstack}
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
nativeBuildInputs = [ pkg-config python3 ];
|
||||
|
||||
buildInputs = [ libffi readline ];
|
||||
|
Loading…
Reference in New Issue
Block a user