Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Astro
rust-card10
Commits
afd46a36
Commit
afd46a36
authored
Sep 25, 2019
by
Astro
⚙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hydra: try to split up l0dables
parent
5227a92b
Pipeline
#4026
passed with stage
in 9 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
hydra/combined.nix
hydra/combined.nix
+7
-1
hydra/l0dables.nix
hydra/l0dables.nix
+16
-4
No files found.
hydra/combined.nix
View file @
afd46a36
...
...
@@ -5,8 +5,14 @@
with
pkgs
;
let
l0dables
=
buildEnv
{
name
=
"l0dables"
;
paths
=
builtins
.
attrValues
rustL0dables
;
pathsToLink
=
[
"/apps"
];
};
release
=
import
../release.nix
{
inherit
cFirmware
rustL0dables
;
inherit
cFirmware
;
rustL0dables
=
l0dables
;
};
releaseZip
=
stdenv
.
mkDerivation
{
name
=
"card10-combined.zip"
;
...
...
hydra/l0dables.nix
View file @
afd46a36
...
...
@@ -13,7 +13,13 @@ let
inherit
pkgs
mozillaOverlay
;
firmwareSrc
=
<
firmware
>
;
};
l0dables
=
project
.
l0dables
.
overrideAttrs
(
oldAttrs
:
{
l0dable
=
crate
:
project
.
l0dables
.
overrideAttrs
(
oldAttrs
:
{
name
=
"
${
oldAttrs
.
name
}
-
${
crate
}
"
;
buildPhase
=
''
pushd
${
crate
}
${
oldAttrs
.
buildPhase
}
popd
''
;
installPhase
=
''
${
oldAttrs
.
installPhase
}
...
...
@@ -23,6 +29,12 @@ let
done
''
;
});
in
{
l0dables
=
pkgs
.
lib
.
hydraJob
l0dables
;
}
crates
=
pkgs
.
lib
.
filterAttrs
(
crate
:
type
:
type
==
"directory"
&&
builtins
.
pathExists
(
<
rust-card10
>
+
"/
${
crate
}
/Cargo.toml"
)
)
(
builtins
.
readDir
<
rust-card10
>
);
in
builtins
.
mapAttrs
(
crate
:
type
:
pkgs
.
lib
.
hydraJob
(
l0dable
crate
)
)
crates
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment