Skip to content

Commit 4e1197c

Browse files
committed
Add ciJobs to legacyPackages to allow build from cicero
which currently use an older nix (2.8).
1 parent 8d7396c commit 4e1197c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
(name: env: f (env // { inherit name; }))
6060
environments;
6161
};
62+
ciJobs = self.ciJobs.${final.system};
6263
})
6364
(import ./nix/pkgs.nix { inherit inputMap; })
6465
];
@@ -137,6 +138,10 @@
137138
supportedSystems = [system];
138139
};
139140
} // tullia.fromSimple system (import ./nix/tullia.nix)) // {
141+
142+
# allows precise paths (avoid fallbacks) with nix build/eval:
143+
outputs = self;
144+
140145
overlay = final: prev:
141146
with self.legacyPackages.${final.system}; {
142147
inherit cardano-db-sync cardano-node dockerImage;

nix/tullia.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ rec {
2222

2323
command.text = config.preset.github.status.lib.reportBulk {
2424
bulk.text = ''
25-
nix eval .#ciJobs --apply __attrNames --json |
25+
nix eval .#outputs.ciJobs --apply __attrNames --json |
2626
nix-systems -i |
2727
jq 'with_entries(select(.value))' # filter out systems that we cannot build for
2828
'';
29-
each.text = ''nix build -L .#ciJobs."$1".required'';
29+
# have to go through legacyPackages instead of top-level attribute for compat with older nix (2.8):
30+
each.text = ''nix build -L .#legacyPackages."$1".ciJobs.required'';
3031
skippedDescription = lib.escapeShellArg "No nix builder available for this system";
3132
};
3233

0 commit comments

Comments
 (0)