mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-09-27 12:07:17 -05:00
flake: make systems overrideable
This commit is contained in:
parent
3dbfeee0df
commit
f5aef0b4d2
1 changed files with 4 additions and 7 deletions
11
flake.nix
11
flake.nix
|
@ -3,22 +3,19 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
systems.url = "github:nix-systems/default";
|
||||||
alejandra.url = "github:kamadorueda/alejandra";
|
alejandra.url = "github:kamadorueda/alejandra";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
systems,
|
||||||
alejandra,
|
alejandra,
|
||||||
}: let
|
}: let
|
||||||
inherit (nixpkgs.lib) genAttrs;
|
inherit (nixpkgs.lib) genAttrs;
|
||||||
forAllSystems = f:
|
forAllSystems = f:
|
||||||
genAttrs [
|
genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
||||||
"x86_64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-linux"
|
|
||||||
"aarch64-darwin"
|
|
||||||
] (system: f nixpkgs.legacyPackages.${system});
|
|
||||||
in {
|
in {
|
||||||
packages = forAllSystems (pkgs:
|
packages = forAllSystems (pkgs:
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
|
|
Loading…
Reference in a new issue