forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / servers / icingaweb2 / default.nix
bloba6d3a8125753bd95a4346d12eddc950f6027685d
1 { stdenvNoCC, lib, fetchFromGitHub, makeWrapper, php, nixosTests }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "icingaweb2";
5   version = "2.12.2";
7   src = fetchFromGitHub {
8     owner = "Icinga";
9     repo = "icingaweb2";
10     rev = "v${version}";
11     hash = "sha256-RwKVANFlFWKgMBwlLmX0P4PR+eTN3uz//kMdJ8dLZuU=";
12   };
14   nativeBuildInputs = [ makeWrapper ];
16   installPhase = ''
17     mkdir -p $out/share
18     cp -ra application bin etc library modules public $out
19     cp -ra doc $out/share
21     wrapProgram $out/bin/icingacli --prefix PATH : "${lib.makeBinPath [ php ]}"
22   '';
24   passthru.tests = { inherit (nixosTests) icingaweb2; };
26   meta = with lib; {
27     description = "Webinterface for Icinga 2";
28     longDescription = ''
29       A lightweight and extensible web interface to keep an eye on your environment.
30       Analyse problems and act on them.
31     '';
32     homepage = "https://www.icinga.com/products/icinga-web-2/";
33     license = licenses.gpl2Only;
34     maintainers = teams.helsinki-systems.members;
35     mainProgram = "icingacli";
36     platforms = platforms.all;
37   };