restructure files
This commit is contained in:
parent
b188b2aa36
commit
e9f735e0dd
3 changed files with 33 additions and 30 deletions
33
flake.nix
33
flake.nix
|
|
@ -4,41 +4,14 @@
|
|||
inputs = {
|
||||
# # Externally extensible flake systems
|
||||
# # REF: https://github.com/nix-systems/nix-systems
|
||||
systems = {
|
||||
url = "github:nix-systems/default";
|
||||
flake = false;
|
||||
};
|
||||
systems.url = "github:nix-systems/default";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
} @ args: rec {
|
||||
# REF: https://github.com/nix-systems/nix-systems
|
||||
archs = {
|
||||
x86_64 = "x86_64";
|
||||
aarch64 = "aarch64";
|
||||
riscv64 = "riscv64";
|
||||
};
|
||||
|
||||
osnames = {
|
||||
linux = "linux";
|
||||
darwin = "darwin";
|
||||
};
|
||||
|
||||
systemName = arch: osname: "${arch}-${osname}";
|
||||
|
||||
systems = let
|
||||
mkSystem = arch: osname: let x = systemName; in {x = x;};
|
||||
in
|
||||
with archs;
|
||||
with osnames; {
|
||||
inherit (mkSystem x86_64 linux);
|
||||
inherit (mkSystem x86_64 darwin);
|
||||
inherit (mkSystem aarh64 linux);
|
||||
inherit (mkSystem aarh64 darwin);
|
||||
inherit (mkSystem riscv64 linux);
|
||||
};
|
||||
} @ args: {
|
||||
inherit (import ./nib {});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
3
nib/default.nix
Normal file
3
nib/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{...}: {
|
||||
sys = import ./sys {};
|
||||
}
|
||||
27
nib/sys/default.nix
Normal file
27
nib/sys/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{...}: rec {
|
||||
# REF: https://github.com/nix-systems/nix-systems
|
||||
archs = {
|
||||
x86_64 = "x86_64";
|
||||
aarch64 = "aarch64";
|
||||
riscv64 = "riscv64";
|
||||
};
|
||||
|
||||
osnames = {
|
||||
linux = "linux";
|
||||
darwin = "darwin";
|
||||
};
|
||||
|
||||
systemName = arch: osname: "${arch}-${osname}";
|
||||
|
||||
systems = let
|
||||
mkSystem = arch: osname: let x = systemName arch osname; in {x = x;};
|
||||
in
|
||||
with archs;
|
||||
with osnames; {
|
||||
inherit (mkSystem x86_64 linux);
|
||||
inherit (mkSystem x86_64 darwin);
|
||||
inherit (mkSystem aarch64 linux);
|
||||
inherit (mkSystem aarch64 darwin);
|
||||
inherit (mkSystem riscv64 linux);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue