Compare commits
2 commits
035092fea3
...
99b86d2caf
| Author | SHA1 | Date | |
|---|---|---|---|
| 99b86d2caf | |||
| 4017ae1491 |
2 changed files with 13 additions and 22 deletions
13
flake.nix
13
flake.nix
|
|
@ -1,17 +1,10 @@
|
||||||
{
|
{
|
||||||
description = "MyNib - My Nix Library";
|
description = "MyNib - My Nix Library";
|
||||||
|
|
||||||
inputs = {
|
|
||||||
# # Externally extensible flake systems
|
|
||||||
# # REF: https://github.com/nix-systems/nix-systems
|
|
||||||
systems.url = "github:nix-systems/default";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
inputs,
|
systems,
|
||||||
...
|
...
|
||||||
} @ args: {
|
} @ inputs:
|
||||||
inherit (import ./nib {});
|
import ./nib {};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,35 +8,33 @@
|
||||||
values);
|
values);
|
||||||
in rec {
|
in rec {
|
||||||
# REF: https://github.com/nix-systems/nix-systems
|
# REF: https://github.com/nix-systems/nix-systems
|
||||||
archs = listToTrivialAttrs arch;
|
archs = listToTrivialAttrs [
|
||||||
arch = [
|
|
||||||
"x86_64"
|
"x86_64"
|
||||||
"aarch64"
|
"aarch64"
|
||||||
"riscv64"
|
"riscv64"
|
||||||
];
|
];
|
||||||
|
|
||||||
# REF: https://github.com/nix-systems/nix-systems
|
# REF: https://github.com/nix-systems/nix-systems
|
||||||
platforms = listToTrivialAttrs platform;
|
platforms = listToTrivialAttrs [
|
||||||
platform = [
|
|
||||||
"linux"
|
"linux"
|
||||||
"darwin"
|
"darwin"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Nix System Identifier Lists - Default Supported Systems
|
# Nix System Identifier Lists - Default Supported Systems
|
||||||
systems = systemsDefault;
|
# systems = systemsDefault;
|
||||||
systemsDefault = systemsX86_64 // systemsAArch64;
|
systems.default = systems.x86_64 // systems.aarch64;
|
||||||
|
|
||||||
# Nix System Identifier Lists - All Potential Systems
|
# Nix System Identifier Lists - All Potential Systems
|
||||||
systemsAll = listsToSystemNames archs platforms;
|
systems.all = listsToSystemNames archs platforms;
|
||||||
|
|
||||||
# Nix System Identifier Lists - Platform Specific
|
# Nix System Identifier Lists - Platform Specific
|
||||||
systemsLinux = listsToSystemNames archs [platform.linux];
|
systems.linux = listsToSystemNames archs [platforms.linux];
|
||||||
systemsDarwin = listsToSystemNames archs [platform.darwin];
|
systems.darwin = listsToSystemNames archs [platforms.darwin];
|
||||||
|
|
||||||
# Nix System Identifier Lists - Architecture Specific
|
# Nix System Identifier Lists - Architecture Specific
|
||||||
systemsX86_64 = listsToSystemNames [arch.x86_64] platforms;
|
systems.x86_64 = listsToSystemNames [archs.x86_64] platforms;
|
||||||
systemsAArch64 = listsToSystemNames [arch.aarch64] platforms;
|
systems.aarch64 = listsToSystemNames [archs.aarch64] platforms;
|
||||||
systemsRiscV64 = listsToSystemNames [arch.riscv64] platforms;
|
systems.riscv64 = listsToSystemNames [archs.riscv64] platforms;
|
||||||
|
|
||||||
# === Internal Helper Functions ===
|
# === Internal Helper Functions ===
|
||||||
toSystemName = arch: platform: "${arch}-${platform}";
|
toSystemName = arch: platform: "${arch}-${platform}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue