Commit afd46a36 authored by Astro's avatar Astro
Browse files

hydra: try to split up l0dables

parent 5227a92b
Pipeline #4026 passed with stage
in 9 minutes and 43 seconds
......@@ -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";
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment