Compare commits
No commits in common. "99b86d2caf8404df8998c3bf40562200fe7950b0" and "035092fea3c365678dc80d08ec2eb22ac5eab3c5" have entirely different histories.
99b86d2caf
...
035092fea3
2 changed files with 22 additions and 13 deletions
13
flake.nix
13
flake.nix
|
|
@ -1,10 +1,17 @@
|
||||||
{
|
{
|
||||||
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,
|
||||||
systems,
|
inputs,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ args: {
|
||||||
import ./nib {};
|
inherit (import ./nib {});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,33 +8,35 @@
|
||||||
values);
|
values);
|
||||||
in rec {
|
in rec {
|
||||||
# REF: https://github.com/nix-systems/nix-systems
|
# REF: https://github.com/nix-systems/nix-systems
|
||||||
archs = listToTrivialAttrs [
|
archs = listToTrivialAttrs arch;
|
||||||
|
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 [
|
platforms = listToTrivialAttrs platform;
|
||||||
|
platform = [
|
||||||
"linux"
|
"linux"
|
||||||
"darwin"
|
"darwin"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Nix System Identifier Lists - Default Supported Systems
|
# Nix System Identifier Lists - Default Supported Systems
|
||||||
# systems = systemsDefault;
|
systems = systemsDefault;
|
||||||
systems.default = systems.x86_64 // systems.aarch64;
|
systemsDefault = systemsX86_64 // systemsAArch64;
|
||||||
|
|
||||||
# Nix System Identifier Lists - All Potential Systems
|
# Nix System Identifier Lists - All Potential Systems
|
||||||
systems.all = listsToSystemNames archs platforms;
|
systemsAll = listsToSystemNames archs platforms;
|
||||||
|
|
||||||
# Nix System Identifier Lists - Platform Specific
|
# Nix System Identifier Lists - Platform Specific
|
||||||
systems.linux = listsToSystemNames archs [platforms.linux];
|
systemsLinux = listsToSystemNames archs [platform.linux];
|
||||||
systems.darwin = listsToSystemNames archs [platforms.darwin];
|
systemsDarwin = listsToSystemNames archs [platform.darwin];
|
||||||
|
|
||||||
# Nix System Identifier Lists - Architecture Specific
|
# Nix System Identifier Lists - Architecture Specific
|
||||||
systems.x86_64 = listsToSystemNames [archs.x86_64] platforms;
|
systemsX86_64 = listsToSystemNames [arch.x86_64] platforms;
|
||||||
systems.aarch64 = listsToSystemNames [archs.aarch64] platforms;
|
systemsAArch64 = listsToSystemNames [arch.aarch64] platforms;
|
||||||
systems.riscv64 = listsToSystemNames [archs.riscv64] platforms;
|
systemsRiscV64 = listsToSystemNames [arch.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