move shell.nix to subdirectory
1 file changed, 22 insertions(+), 15 deletions(-)
changed files
M flake.nix → flake.nix
@@ -7,21 +7,28 @@ inputs.gomod2nix.url = "github:nix-community/gomod2nix"; inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs"; inputs.gomod2nix.inputs.flake-utils.follows = "flake-utils"; - outputs = { self, nixpkgs, flake-utils, gomod2nix }: - (flake-utils.lib.eachDefaultSystem - (system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in - { - packages.default = pkgs.callPackage ./nix/package { - inherit (gomod2nix.legacyPackages.${system}) buildGoApplication; - }; - devShells.default = pkgs.callPackage ./shell.nix { - inherit (gomod2nix.legacyPackages.${system}) mkGoEnv gomod2nix; - }; - }) - ) // { + outputs = + { + self, + nixpkgs, + flake-utils, + gomod2nix, + }: + (flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + packages.default = pkgs.callPackage ./nix/package { + inherit (gomod2nix.legacyPackages.${system}) buildGoApplication; + }; + devShells.default = pkgs.callPackage ./nix/shell.nix { + inherit (gomod2nix.legacyPackages.${system}) mkGoEnv gomod2nix; + }; + } + )) + // { overlays = { default = final: prev: { elgit = self.packages.${final.system}.default;