mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-09-27 12:07:17 -05:00
flake: replace forAllSystems with eachSystem
This commit is contained in:
parent
f5aef0b4d2
commit
35b4ac836b
2 changed files with 25 additions and 6 deletions
18
flake.lock
18
flake.lock
|
@ -93,7 +93,8 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"alejandra": "alejandra",
|
"alejandra": "alejandra",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"systems": "systems"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
@ -112,6 +113,21 @@
|
||||||
"repo": "rust-analyzer",
|
"repo": "rust-analyzer",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -14,10 +14,13 @@
|
||||||
alejandra,
|
alejandra,
|
||||||
}: let
|
}: let
|
||||||
inherit (nixpkgs.lib) genAttrs;
|
inherit (nixpkgs.lib) genAttrs;
|
||||||
forAllSystems = f:
|
eachSystem = fn:
|
||||||
genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
genAttrs (import systems) (system: let
|
||||||
|
pkgs = import nixpkgs {localSystem.system = system;};
|
||||||
|
in
|
||||||
|
fn system pkgs);
|
||||||
in {
|
in {
|
||||||
packages = forAllSystems (pkgs:
|
packages = eachSystem (_: pkgs:
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
default = stdenv.mkDerivation {
|
default = stdenv.mkDerivation {
|
||||||
name = "monolisa-nerdfont-patch";
|
name = "monolisa-nerdfont-patch";
|
||||||
|
@ -40,11 +43,11 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forAllSystems (pkgs:
|
devShells = eachSystem (_: pkgs:
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
default = mkShell {buildInputs = [fontforge python3 pre-commit];};
|
default = mkShell {buildInputs = [fontforge python3 pre-commit];};
|
||||||
});
|
});
|
||||||
|
|
||||||
formatter.x86_64-linux = alejandra.packages.x86_64-linux.default;
|
formatter = eachSystem (system: _: alejandra.packages.${system}.default);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue