Skip to content

Commit 8a45db4

Browse files
committed
build: filter by arch to prevent duplicated
1 parent 007cb7a commit 8a45db4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@
113113
}) architectures)) // (pkgs.lib.listToAttrs (map ({arch, ...} @ args: {
114114
name = "image-${arch}";
115115
value = containerPkg args;
116-
}) architectures));
116+
}) (builtins.listToAttrs (
117+
map (x: {
118+
name = x.nombre;
119+
value = x;
120+
}) (builtins.filter (x: !builtins.hasAttr "arch" x) architectures)
121+
))
122+
));
117123

118124
apps = {
119125
help = {

0 commit comments

Comments
 (0)