Forráskód Böngészése

fix(nix): remove unsupported systems

from `supportedSystems` list.  Most of the unsupported systems are
unsupported because the transitive dependency GHC is not available;
`mipsel-linux` is unsupported because of an issue building Nix's
bootstrap tools.
Matt Schreiber 2 éve
szülő
commit
969a969688
1 módosított fájl, 15 hozzáadás és 1 törlés
  1. 15 1
      flake.nix

+ 15 - 1
flake.nix

@@ -3,7 +3,21 @@
 
   outputs = { self, nixpkgs }:
     let
-      supportedSystems = nixpkgs.lib.systems.flakeExposed;
+      supportedSystems =
+        let
+          unsupportedSystems = [
+            # GHC not supported
+            "armv5tel-linux"
+            "armv6l-linux"
+            "powerpc64le-linux"
+            "riscv64-linux"
+
+            # "error: attribute 'busybox' missing" when building
+            # `bootstrap-tools`
+            "mipsel-linux"
+          ];
+        in nixpkgs.lib.subtractLists unsupportedSystems nixpkgs.lib.systems.flakeExposed;
+
       perSystem = nixpkgs.lib.genAttrs supportedSystems;
       pkgsFor = system: import nixpkgs { inherit system; };