2024-07-08 18:04:51 +00:00
|
|
|
# SPDX-FileCopyrightText: 2024 The nix-gerrit Authors <git@lukegb.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
{
|
|
|
|
description = "Gerrit, a code-review service for Git";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }: let
|
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
|
|
in {
|
|
|
|
packages = forAllSystems (system: let
|
|
|
|
pkgSet = import ./default.nix { pkgs = nixpkgs.legacyPackages."${system}"; };
|
2024-07-08 20:55:20 +00:00
|
|
|
in {
|
|
|
|
default = pkgSet.gerrit;
|
2024-12-14 15:26:24 +00:00
|
|
|
inherit (pkgSet) gerrit gerrit_3_11;
|
2024-12-14 15:35:03 +00:00
|
|
|
inherit (pkgSet.plugins) oauth code-owners metrics-reporter-prometheus;
|
2024-12-14 15:26:24 +00:00
|
|
|
inherit (pkgSet) plugins_3_11;
|
2024-07-08 20:55:20 +00:00
|
|
|
});
|
|
|
|
|
2024-07-08 18:04:51 +00:00
|
|
|
devShells = forAllSystems (system: {
|
|
|
|
default = import ./shell.nix { pkgs = nixpkgs.legacyPackages."${system}"; };
|
|
|
|
});
|
2024-07-08 20:55:20 +00:00
|
|
|
|
|
|
|
overlays.default = final: prev: {
|
|
|
|
gerritPkgs = import ./default.nix { pkgs = final; };
|
|
|
|
gerrit = final.gerritPkgs.gerrit;
|
|
|
|
gerritPlugins = final.gerritPkgs.plugins;
|
|
|
|
};
|
2024-07-08 18:04:51 +00:00
|
|
|
};
|
|
|
|
}
|