Skip to content

{rocm,xpu}Packages: read version manifests from directory - #797

Merged
danieldk merged 2 commits into
mainfrom
read-manifests
Aug 28, 2026
Merged

{rocm,xpu}Packages: read version manifests from directory#797
danieldk merged 2 commits into
mainfrom
read-manifests

Conversation

@danieldk

Copy link
Copy Markdown
Member

Avoid having to maintain a manual list.

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice.

Comment on lines +14 to +27
manifests =
lib.mapAttrs'
(
fileName: type:
let
version = lib.removeSuffix ".json" fileName;
in
{
name = version;
value = lib.importJSON (./manifests/${fileName});
}
)

(builtins.readDir ./manifests);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤌

Comment thread nix-builder/overlay.nix
Comment on lines +287 to +294
// (import ./pkgs/rocm-packages {
inherit (final) callPackage;
inherit (prev) lib;
})
// (import ./pkgs/xpu-packages {
inherit (final) callPackage;
inherit (prev) lib;
})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@danieldk
danieldk merged commit 375561f into main Aug 28, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants