feat: inital support for x86_64-linux

This commit is contained in:
isabel roses 2024-06-13 13:00:59 +01:00
parent 9c29945531
commit e0eeb90446
Signed by: isabelroses
GPG key ID: 08A97B9A107A1798
5 changed files with 71 additions and 63 deletions

View file

@ -3,10 +3,10 @@
"lib": { "lib": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"dirtyRev": "f24f0876a9103c7adb8120ce9709fb90c73f2a7c-dirty", "dirtyRev": "9c29945531c58ad81f05cd1f4958c8894a733216-dirty",
"dirtyShortRev": "f24f087-dirty", "dirtyShortRev": "9c29945-dirty",
"lastModified": 1718105966, "lastModified": 1718255029,
"narHash": "sha256-L68G29+bPmwZSERg3VYXdfont/w+mssmWnrs6tyBijk=", "narHash": "sha256-DtCLqQJ1Aa3WTrZcfZyVEa5uGZeYh+7YuqT44K166Cg=",
"type": "git", "type": "git",
"url": "file:../?dir=lib" "url": "file:../?dir=lib"
}, },

View file

@ -7,31 +7,30 @@
}; };
}; };
outputs = inputs: let outputs =
inputs:
let
inherit (inputs.lib) lib; inherit (inputs.lib) lib;
modules = import ./src; modules = import ./src;
forEachSystem = lib.attrs.generate [ forEachSystem = lib.attrs.generate [
"i686-linux" "i686-linux"
"x86_64-linux"
]; ];
in { in
extras = let {
result = lib.modules.run { extras =
modules = let
builtins.attrValues modules; result = lib.modules.run { modules = builtins.attrValues modules; };
};
in in
result.config.exports.resolved.extras; result.config.exports.resolved.extras;
packages = forEachSystem ( packages = forEachSystem (
system: let system:
let
result = lib.modules.run { result = lib.modules.run {
modules = modules = (builtins.attrValues modules) ++ [ { config.aux.system = system; } ];
(builtins.attrValues modules)
++ [
{config.aux.system = system;}
];
}; };
in in
result.config.exports.resolved.packages result.config.exports.resolved.packages

View file

@ -1,13 +1,13 @@
{ {
lib ? import ./../lib, lib ? import ./../lib,
foundation ? import ./../foundation {system = "i686-linux";}, system ? builtins.currentSystem,
}: let foundation ? import ./../foundation { inherit system; },
}:
let
modules = import ./src/modules.nix; modules = import ./src/modules.nix;
result = lib.modules.run { result = lib.modules.run {
modules = modules = (builtins.attrValues modules) ++ [
(builtins.attrValues modules)
++ [
./src/export.nix ./src/export.nix
{ {
__file__ = ./default.nix; __file__ = ./default.nix;
@ -21,10 +21,10 @@
}; };
config.packages.aux = { config.packages.aux = {
foundation = foundation; inherit foundation;
}; };
} }
]; ];
}; };
in in
result.config.exported result.config.exported

View file

@ -8,10 +8,10 @@
}, },
"locked": { "locked": {
"dir": "foundation", "dir": "foundation",
"dirtyRev": "cd12786be17a611976b44fbba3e245eca512535f-dirty", "dirtyRev": "9c29945531c58ad81f05cd1f4958c8894a733216-dirty",
"dirtyShortRev": "cd12786-dirty", "dirtyShortRev": "9c29945-dirty",
"lastModified": 1718199069, "lastModified": 1718255029,
"narHash": "sha256-H2Mkyp9BPDPte+E++uIG2N/vGtcS3H9Q7tM3fOOEXT0=", "narHash": "sha256-O+UzIjpab9YUwFACx+pi7tqO4HEtjr70ySGKKteURVw=",
"type": "git", "type": "git",
"url": "file:../?dir=foundation" "url": "file:../?dir=foundation"
}, },
@ -24,10 +24,10 @@
"lib": { "lib": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"dirtyRev": "cd12786be17a611976b44fbba3e245eca512535f-dirty", "dirtyRev": "9c29945531c58ad81f05cd1f4958c8894a733216-dirty",
"dirtyShortRev": "cd12786-dirty", "dirtyShortRev": "9c29945-dirty",
"lastModified": 1718199069, "lastModified": 1718255029,
"narHash": "sha256-H2Mkyp9BPDPte+E++uIG2N/vGtcS3H9Q7tM3fOOEXT0=", "narHash": "sha256-O+UzIjpab9YUwFACx+pi7tqO4HEtjr70ySGKKteURVw=",
"type": "git", "type": "git",
"url": "file:../?dir=lib" "url": "file:../?dir=lib"
}, },

View file

@ -9,10 +9,19 @@
}; };
}; };
outputs = inputs: let outputs =
inputs:
let
inherit (inputs.lib) lib;
forEachSystem = lib.attrs.generate [
"i686-linux"
"x86_64-linux"
];
exports = import ./default.nix { exports = import ./default.nix {
lib = inputs.lib.lib; inherit lib;
foundation = inputs.foundation.packages.i686-linux; foundation = forEachSystem (system: inputs.foundation.packages.${system});
}; };
in in
exports; exports;