From 7b14aca0efef72ae6dbc8a4dcb5fc6aab6f69de2 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 31 Oct 2023 20:21:36 +0100 Subject: x86 stuff --- flake.nix | 15 +++++++++++++-- 1 file 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; -- cgit 1.4.1