feat: remove inherit and rec
This commit is contained in:
parent
c629b3fdf4
commit
2d5421d73d
1 changed files with 3 additions and 7 deletions
10
flake.nix
10
flake.nix
|
@ -6,6 +6,7 @@
|
||||||
self,
|
self,
|
||||||
}: let
|
}: let
|
||||||
pkgs = nixpkgs;
|
pkgs = nixpkgs;
|
||||||
|
lib = pkgs.lib;
|
||||||
|
|
||||||
mkAllSystems = lib.genAttrs [
|
mkAllSystems = lib.genAttrs [
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
|
@ -14,17 +15,13 @@
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
in {
|
in {
|
||||||
formatter = mkAllSystems (system: pkgs.legacyPackages.${system}.alejandra);
|
formatter = mkAllSystems (system: pkgs.legacyPackages.${system}.alejandra);
|
||||||
|
|
||||||
devShells = mkAllSystems (system: let
|
devShells = mkAllSystems (system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
inherit (pkgs) mkShell;
|
default = pkgs.mkShell {
|
||||||
in rec {
|
|
||||||
default = mkShell {
|
|
||||||
nativeBuildInputs = [pkgs.dnscontrol];
|
nativeBuildInputs = [pkgs.dnscontrol];
|
||||||
|
|
||||||
shellHook =
|
shellHook =
|
||||||
|
@ -48,4 +45,3 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue