Skip to content

Commit b4ab697

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flake.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@
113113
}) architectures)) // (pkgs.lib.listToAttrs (map ({arch, ...} @ args: {
114114
name = "image-${arch}";
115115
value = containerPkg args;
116-
}) architectures));
116+
}) (pkgs.lib.flip builtins.mapAttrs (
117+
lib.groupBy (x: x.arch) architectures
118+
) (group: builtins.head group))));
117119

118120
apps = {
119121
help = {

0 commit comments

Comments
 (0)