mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-03 15:33:31 +00:00
flake: allow overriding flake-parts systems
This commit is contained in:
parent
e6c84d0f29
commit
512639d692
2 changed files with 10 additions and 4 deletions
BIN
flake.lock
generated
BIN
flake.lock
generated
Binary file not shown.
14
flake.nix
14
flake.nix
|
@ -4,6 +4,7 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
systems.url = "github:nix-systems/default-linux";
|
||||||
|
|
||||||
flake-compat = {
|
flake-compat = {
|
||||||
url = "github:edolstra/flake-compat";
|
url = "github:edolstra/flake-compat";
|
||||||
|
@ -12,15 +13,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-parts,
|
flake-parts,
|
||||||
self,
|
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
pins = import ./npins;
|
pins = import ./npins;
|
||||||
in
|
in
|
||||||
flake-parts.lib.mkFlake {inherit inputs self;} {
|
flake-parts.lib.mkFlake {inherit inputs self;} {
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = import inputs.systems;
|
||||||
imports = [flake-parts.flakeModules.easyOverlay];
|
imports = [flake-parts.flakeModules.easyOverlay];
|
||||||
|
|
||||||
perSystem = {
|
perSystem = {
|
||||||
|
@ -43,8 +44,13 @@
|
||||||
directory = ./pkgs;
|
directory = ./pkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter = pkgs.alejandra;
|
formatter = config.packages.alejandra-custom;
|
||||||
devShells.default = with pkgs; mkShell {buildInputs = [npins];};
|
devShells = {
|
||||||
|
default = self.devShells.${system}.npins;
|
||||||
|
npins = pkgs.mkShellNoCC {
|
||||||
|
packages = [pkgs.npins];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue