nix-gerrit/flake.nix
raito 2cec46f9cc chore: add metrics-reporter-prometheus to flake.nix
This way, it's easy to test it over a fixed nixpkgs version.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-12-14 16:35:04 +01:00

34 lines
1,001 B
Nix

# 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}"; };
in {
default = pkgSet.gerrit;
inherit (pkgSet) gerrit;
inherit (pkgSet.plugins) oauth code-owners metrics-reporter-prometheus;
});
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;
};
};
}