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
Branches
No related tags found
No related merge requests found
Pipeline #675 failed
{ pkgsCross, python3, ninja, meson, gcc }: { fetchFromGitHub, pkgsCross, python3, ninja, meson, gcc }:
let
micropython = fetchFromGitHub {
owner = "micropython";
repo = "micropython";
rev = "62f004ba424920a01e60c7a9a064b8ec9cd69c12";
sha256 = "1v2aisrsy9g22jjlgq6yf5k111bvr3j9lr38jb77cgmhnp8sxfzi";
};
in
pkgsCross.armhf-embedded.stdenv.mkDerivation { pkgsCross.armhf-embedded.stdenv.mkDerivation {
name = "card10"; name = "card10";
src = ./..; src = ./..;
postPatch = '' postPatch = ''
substituteInPlace card10-cross.ini \ substituteInPlace card10-cross.ini \
--replace arm-none-eabi arm-none-eabihf --replace arm-none-eabi arm-none-eabihf
ln -s ${micropython} lib/micropython/micropython
''; '';
nativeBuildInputs = [ ninja meson python3 gcc ]; nativeBuildInputs = [ ninja meson python3 gcc ];
mesonFlags = [ mesonFlags = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment