1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2025-01-24 01:39:51 +01:00

Limit systems to x86 and aarch64

This commit is contained in:
Jake Waksbaum 2020-08-31 00:10:18 -04:00
parent 78c96317b0
commit 5c5a0da07a

View file

@ -9,19 +9,14 @@
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
{ {
overlay = final: prev: import "${self}/overlay.nix" final prev; overlay = final: prev: import "${self}/overlay.nix" final prev;
} // flake-utils.lib.eachDefaultSystem ( } // flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (
system: system:
let let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
darwin_network_cmds_openssl_overlay = final: prev: {
darwin = prev.darwin // {
network_cmds = prev.darwin.network_cmds.override { openssl_1_0_2 = prev.openssl; };
};
};
pkgsNative = import nixpkgs { pkgsNative = import nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [ darwin_network_cmds_openssl_overlay self.overlay ]; overlays = [ self.overlay ];
}; };
pkgs = if system == "aarch64-linux" then pkgsNative else pkgsNative.pkgsCross.aarch64-multiplatform; pkgs = if system == "aarch64-linux" then pkgsNative else pkgsNative.pkgsCross.aarch64-multiplatform;
in in