From eb589c659e494e5fcb5b47b75be9984ae87a500a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 8 Jul 2024 21:55:20 +0100 Subject: [PATCH] flake: expose overlay and fix up flake check --- flake.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 70c48c7..c4d0f57 100644 --- a/flake.nix +++ b/flake.nix @@ -14,9 +14,20 @@ in { packages = forAllSystems (system: let pkgSet = import ./default.nix { pkgs = nixpkgs.legacyPackages."${system}"; }; - in pkgSet // { default = pkgSet.gerrit; }); + in { + default = pkgSet.gerrit; + inherit (pkgSet) gerrit; + inherit (pkgSet.plugins) oauth code-owners; + }); + devShells = forAllSystems (system: { default = import ./shell.nix { pkgs = nixpkgs.legacyPackages."${system}"; }; }); + + overlays.default = final: prev: { + gerritPkgs = import ./default.nix { pkgs = final; }; + gerrit = final.gerritPkgs.gerrit; + gerritPlugins = final.gerritPkgs.plugins; + }; }; }