A fork of attic a self-hostable Nix Binary Cache server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

flake/packages: Add cross-compiled container image for aarch64-linux

+23
+23
flake/packages.nix
··· 16 16 inherit (flake-parts-lib) 17 17 mkPerSystemOption 18 18 ; 19 + 20 + # Re-evaluate perSystem with cross nixpkgs 21 + # HACK before https://github.com/hercules-ci/flake-parts/issues/95 is solved 22 + evalCross = { system, pkgs }: config.allSystems.${system}.debug.extendModules { 23 + modules = [ 24 + ({ config, lib, ... }: { 25 + _module.args.pkgs = pkgs; 26 + _module.args.self' = lib.mkForce config; 27 + }) 28 + ]; 29 + }; 19 30 in 20 31 { 21 32 options = { ··· 94 105 ]; 95 106 }; 96 107 }; 108 + }; 109 + }) 110 + 111 + (lib.mkIf (pkgs.system == "x86_64-linux") { 112 + packages = { 113 + attic-server-image-aarch64 = let 114 + eval = evalCross { 115 + system = "aarch64-linux"; 116 + pkgs = pkgs.pkgsCross.aarch64-multiplatform; 117 + }; 118 + 119 + in eval.config.packages.attic-server-image; 97 120 }; 98 121 }) 99 122