Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Astro
firmware
Commits
8af5af05
Commit
8af5af05
authored
5 years ago
by
Astro
Browse files
Options
Downloads
Patches
Plain Diff
fix(nix): fetch micropython submodule in nix
should fix CI
parent
cb221011
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#675
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nix/firmware.nix
+24
-15
24 additions, 15 deletions
nix/firmware.nix
with
24 additions
and
15 deletions
nix/firmware.nix
+
24
−
15
View file @
8af5af05
{
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"
];
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment