Additional outputs to flakes #86

Merged
sb10q merged 3 commits from mwojcik/zynq-rs:flake_extra_outputs into master 2022-02-04 18:42:36 +08:00
1 changed files with 5 additions and 5 deletions

View File

@ -257,16 +257,16 @@
in in
commands + "ln -s ${szlResult}/szl.elf $out/szl-${target}.elf\n" commands + "ln -s ${szlResult}/szl.elf $out/szl-${target}.elf\n"
) "mkdir $out\n" targets); ) "mkdir $out\n" targets);
in rec {
Review

Is rec necessary?

Is ``rec`` necessary?
Review

for hydraJobs = packages.x86_64-linux;

for ``hydraJobs = packages.x86_64-linux;``
allOutputs = { packages.x86_64-linux = {
inherit cargo-xbuild szl; inherit cargo-xbuild szl mkbootimage;
zc706-fsbl = fsbl { board = "zc706"; }; zc706-fsbl = fsbl { board = "zc706"; };
} // allTargetCrates ; } // allTargetCrates ;
in rec {
packages.x86_64-linux = allOutputs;
hydraJobs = packages.x86_64-linux; hydraJobs = packages.x86_64-linux;
inherit rustPlatform;
devShell.x86_64-linux = pkgs.mkShell { devShell.x86_64-linux = pkgs.mkShell {
name = "zynq-rs-dev-shell"; name = "zynq-rs-dev-shell";
buildInputs = with pkgs; [ buildInputs = with pkgs; [