Skip to content

Commit

Permalink
full path closure
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskowa committed Nov 15, 2023
1 parent 3a067fe commit 2fb0a1e
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,17 @@ let
allJobs = prefix: jobs: let
aggrJob = (nixpkgs-final {}).releaseTools.aggregate {
name = "all-packages";
constituents = [
jobs.tested
jobs.tests.molcas
jobs.python3.adcc
];
# constituents = with lib;
# let
# a2l = mapAttrsToList (_: path: if (lib.isAttrs path) then a2l path else path);
# pnames =
# mapAttrsRecursiveCond
# (as: !(as ? "type" && as.type == "derivation"))
# (path: _: concatStringsSep "." ([ prefix ] ++ path))
# jobs
# ;
# in a2l pnames;
constituents = with lib;
let
a2l = mapAttrsToList (_: path: if (lib.isAttrs path && !isDerivation path) then a2l path else path);
pnames =
mapAttrsRecursiveCond
(as: !(as ? "type" && as.type == "derivation"))
# (path: _: concatStringsSep "." ([ prefix ] ++ path))
(path: v: v)
jobs
;
in a2l pnames;
};
in {
"${prefix}" = jobs;
Expand Down

0 comments on commit 2fb0a1e

Please sign in to comment.