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

Merge pull request #88 from tomeon/nix-flake-remove-unsupported-systems

flake.nix: remove unsupported systems from `supportedSystems` list
Mark Szepieniec 2 éve
szülő
commit
5cd9b3b6db
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; };