Skip to content
Snippets Groups Projects
Commit 8af5af05 authored by Astro's avatar Astro :gear:
Browse files

fix(nix): fetch micropython submodule in nix

should fix CI
parent cb221011
No related branches found
No related tags found
No related merge requests found
Pipeline #675 failed
{ pkgsCross, python3, ninja, meson, gcc }: { fetchFromGitHub, pkgsCross, python3, ninja, meson, gcc }:
pkgsCross.armhf-embedded.stdenv.mkDerivation { let
name = "card10"; micropython = fetchFromGitHub {
src = ./..; owner = "micropython";
postPatch = '' repo = "micropython";
substituteInPlace card10-cross.ini \ rev = "62f004ba424920a01e60c7a9a064b8ec9cd69c12";
--replace arm-none-eabi arm-none-eabihf sha256 = "1v2aisrsy9g22jjlgq6yf5k111bvr3j9lr38jb77cgmhnp8sxfzi";
''; };
nativeBuildInputs = [ ninja meson python3 gcc ]; in
mesonFlags = [ pkgsCross.armhf-embedded.stdenv.mkDerivation {
"--cross-file card10-cross.ini" name = "card10";
"--optimization s" src = ./..;
]; postPatch = ''
ninjaFlags = [ "-v" ]; substituteInPlace card10-cross.ini \
} --replace arm-none-eabi arm-none-eabihf
ln -s ${micropython} lib/micropython/micropython
'';
nativeBuildInputs = [ ninja meson python3 gcc ];
mesonFlags = [
"--cross-file card10-cross.ini"
"--optimization s"
];
ninjaFlags = [ "-v" ];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment