feat: inital support for x86_64-linux
This commit is contained in:
parent
9c29945531
commit
e0eeb90446
|
@ -3,10 +3,10 @@
|
|||
"lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"dirtyRev": "f24f0876a9103c7adb8120ce9709fb90c73f2a7c-dirty",
|
||||
"dirtyShortRev": "f24f087-dirty",
|
||||
"lastModified": 1718105966,
|
||||
"narHash": "sha256-L68G29+bPmwZSERg3VYXdfont/w+mssmWnrs6tyBijk=",
|
||||
"dirtyRev": "9c29945531c58ad81f05cd1f4958c8894a733216-dirty",
|
||||
"dirtyShortRev": "9c29945-dirty",
|
||||
"lastModified": 1718255029,
|
||||
"narHash": "sha256-DtCLqQJ1Aa3WTrZcfZyVEa5uGZeYh+7YuqT44K166Cg=",
|
||||
"type": "git",
|
||||
"url": "file:../?dir=lib"
|
||||
},
|
||||
|
|
|
@ -7,31 +7,30 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = inputs: let
|
||||
outputs =
|
||||
inputs:
|
||||
let
|
||||
inherit (inputs.lib) lib;
|
||||
|
||||
modules = import ./src;
|
||||
|
||||
forEachSystem = lib.attrs.generate [
|
||||
"i686-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
in {
|
||||
extras = let
|
||||
result = lib.modules.run {
|
||||
modules =
|
||||
builtins.attrValues modules;
|
||||
};
|
||||
in
|
||||
{
|
||||
extras =
|
||||
let
|
||||
result = lib.modules.run { modules = builtins.attrValues modules; };
|
||||
in
|
||||
result.config.exports.resolved.extras;
|
||||
|
||||
packages = forEachSystem (
|
||||
system: let
|
||||
system:
|
||||
let
|
||||
result = lib.modules.run {
|
||||
modules =
|
||||
(builtins.attrValues modules)
|
||||
++ [
|
||||
{config.aux.system = system;}
|
||||
];
|
||||
modules = (builtins.attrValues modules) ++ [ { config.aux.system = system; } ];
|
||||
};
|
||||
in
|
||||
result.config.exports.resolved.packages
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
lib ? import ./../lib,
|
||||
foundation ? import ./../foundation {system = "i686-linux";},
|
||||
}: let
|
||||
system ? builtins.currentSystem,
|
||||
foundation ? import ./../foundation { inherit system; },
|
||||
}:
|
||||
let
|
||||
modules = import ./src/modules.nix;
|
||||
|
||||
result = lib.modules.run {
|
||||
modules =
|
||||
(builtins.attrValues modules)
|
||||
++ [
|
||||
modules = (builtins.attrValues modules) ++ [
|
||||
./src/export.nix
|
||||
{
|
||||
__file__ = ./default.nix;
|
||||
|
@ -21,10 +21,10 @@
|
|||
};
|
||||
|
||||
config.packages.aux = {
|
||||
foundation = foundation;
|
||||
inherit foundation;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
result.config.exported
|
||||
result.config.exported
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
},
|
||||
"locked": {
|
||||
"dir": "foundation",
|
||||
"dirtyRev": "cd12786be17a611976b44fbba3e245eca512535f-dirty",
|
||||
"dirtyShortRev": "cd12786-dirty",
|
||||
"lastModified": 1718199069,
|
||||
"narHash": "sha256-H2Mkyp9BPDPte+E++uIG2N/vGtcS3H9Q7tM3fOOEXT0=",
|
||||
"dirtyRev": "9c29945531c58ad81f05cd1f4958c8894a733216-dirty",
|
||||
"dirtyShortRev": "9c29945-dirty",
|
||||
"lastModified": 1718255029,
|
||||
"narHash": "sha256-O+UzIjpab9YUwFACx+pi7tqO4HEtjr70ySGKKteURVw=",
|
||||
"type": "git",
|
||||
"url": "file:../?dir=foundation"
|
||||
},
|
||||
|
@ -24,10 +24,10 @@
|
|||
"lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"dirtyRev": "cd12786be17a611976b44fbba3e245eca512535f-dirty",
|
||||
"dirtyShortRev": "cd12786-dirty",
|
||||
"lastModified": 1718199069,
|
||||
"narHash": "sha256-H2Mkyp9BPDPte+E++uIG2N/vGtcS3H9Q7tM3fOOEXT0=",
|
||||
"dirtyRev": "9c29945531c58ad81f05cd1f4958c8894a733216-dirty",
|
||||
"dirtyShortRev": "9c29945-dirty",
|
||||
"lastModified": 1718255029,
|
||||
"narHash": "sha256-O+UzIjpab9YUwFACx+pi7tqO4HEtjr70ySGKKteURVw=",
|
||||
"type": "git",
|
||||
"url": "file:../?dir=lib"
|
||||
},
|
||||
|
|
|
@ -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 {
|
||||
lib = inputs.lib.lib;
|
||||
foundation = inputs.foundation.packages.i686-linux;
|
||||
inherit lib;
|
||||
foundation = forEachSystem (system: inputs.foundation.packages.${system});
|
||||
};
|
||||
in
|
||||
exports;
|
||||
|
|
Loading…
Reference in a new issue