From 727ec7765642e3b1fe5f73ed21dc5b8bb77e409a Mon Sep 17 00:00:00 2001 From: Oleks Date: Sat, 14 Mar 2026 00:11:35 +0200 Subject: [PATCH] Cross-compile s390x packages from x86_64-linux --- flake.nix | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index a8012f6..b3872f7 100644 --- a/flake.nix +++ b/flake.nix @@ -15,13 +15,6 @@ flake-utils, ... }: - let - supportedSystems = [ - "x86_64-linux" - "aarch64-linux" - "s390x-linux" - ]; - in let # Systems that have native builders buildSystems = [ @@ -74,12 +67,13 @@ let pkgs = import nixpkgs { system = "x86_64-linux"; - crossSystem.config = nixpkgs.lib.systems.examples.${ - { - "s390x-linux" = "s390x"; - } - .${target} - }.config; + crossSystem.config = + nixpkgs.lib.systems.examples.${ + { + "s390x-linux" = "s390x"; + } + .${target} + }.config; }; packages = mkPackages pkgs; in