about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2023-10-31 20:21:36 +0100
committerEmile <git@emile.space>2023-10-31 20:21:36 +0100
commit7b14aca0efef72ae6dbc8a4dcb5fc6aab6f69de2 (patch)
tree1c1f5235ec774270ba488005529108b8fcfe473d
parent653e5f3ed1b44ab547b96e09c963062628256b5a (diff)
x86 stuff
-rw-r--r--flake.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 88cc5fd..547b82e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,9 +4,12 @@
   };
 
   outputs = { self, nixpkgs, ... }: let
-    pkgs = import nixpkgs {
+    pkgs_aarch64 = import nixpkgs {
       system = "aarch64-darwin";
     };
+    pkgs_x86 = import nixpkgs {
+      system = "x86_64-linux";
+    };
 
     packageVersions = {
       # Wyze Cam Outdoor v1 Firmware
@@ -72,7 +75,15 @@
     packages."aarch64-darwin" = nixpkgs.lib.mapAttrs
       (name: attrs:
         import ./wyze.nix {
-          inherit pkgs;
+          inherit pkgs_x86;
+          inherit attrs;
+        }
+      ) packageVersions;
+
+    packages."x86_64-linux" = nixpkgs.lib.mapAttrs
+      (name: attrs:
+        import ./wyze.nix {
+          inherit pkgs_aarch64;
           inherit attrs;
         }
       ) packageVersions;