From 9f740ec2343fc85abdbff685992f6a9efcb71cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Tue, 28 Oct 2025 17:25:41 +0100 Subject: [PATCH 1/3] Set amd-uprof platforms to x86_64-linux only --- pkgs/amd-uprof/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/amd-uprof/default.nix b/pkgs/amd-uprof/default.nix index a7c58e5d..6f566c84 100644 --- a/pkgs/amd-uprof/default.nix +++ b/pkgs/amd-uprof/default.nix @@ -90,7 +90,7 @@ in meta = { description = "Performance analysis tool-suite for x86 based applications"; homepage = "https://www.amd.com/es/developer/uprof.html"; - platforms = lib.platforms.linux; + platforms = [ "x86_64-linux" ]; license = lib.licenses.unfree; maintainers = with lib.maintainers.bsc; [ rarias varcila ]; }; -- 2.49.0 From a13a4e66a6e7be47608be0cf2cac42637ec9f938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Tue, 28 Oct 2025 17:26:30 +0100 Subject: [PATCH 2/3] Add meta to cudainfo --- pkgs/cudainfo/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/cudainfo/default.nix b/pkgs/cudainfo/default.nix index 871d6978..9dddf35c 100644 --- a/pkgs/cudainfo/default.nix +++ b/pkgs/cudainfo/default.nix @@ -1,5 +1,6 @@ { stdenv +, lib , cudatoolkit , cudaPackages , autoAddDriverRunpath @@ -40,4 +41,9 @@ stdenv.mkDerivation (finalAttrs: { ''; installPhase = "touch $out"; }; + + meta = { + platforms = [ "x86_64-linux" ]; + maintainers = with lib.maintainers.bsc; [ rarias ]; + }; }) -- 2.49.0 From 97e81b2f91e8528c152e1cedabe5907aecf61e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Tue, 28 Oct 2025 17:26:47 +0100 Subject: [PATCH 3/3] Filter out packages by platform from crossSet --- overlay.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/overlay.nix b/overlay.nix index 3b02ae30..d7560856 100644 --- a/overlay.nix +++ b/overlay.nix @@ -107,7 +107,12 @@ let (meta.availableOn platform pkg); # For now only RISC-V - crossSet = { riscv64 = final.pkgsCross.riscv64.bsc.pkgsTopLevel; }; + crossSet = genAttrs [ "riscv64" ] genCross; + + genCross = platform: + # filter out packages by meta.platforms + filterAttrs (_: meta.availableOn final.pkgsCross.${platform}.stdenv.hostPlatform) + final.pkgsCross.${platform}.bsc.pkgsTopLevel; buildList = name: paths: final.runCommandLocal name { } '' -- 2.49.0