nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenvNoCC, lib, fetchFromGitHub, makeWrapper, php }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "icingaweb2";
5 version = "2.11.4";
6
7 src = fetchFromGitHub {
8 owner = "Icinga";
9 repo = "icingaweb2";
10 rev = "v${version}";
11 hash = "sha256-UMC1puEM0PhIu+lJouOj81tI/E6fz1PzPN0FU7TNwTg=";
12 };
13
14 nativeBuildInputs = [ makeWrapper ];
15
16 installPhase = ''
17 mkdir -p $out/share
18 cp -ra application bin etc library modules public $out
19 cp -ra doc $out/share
20
21 wrapProgram $out/bin/icingacli --prefix PATH : "${lib.makeBinPath [ php ]}"
22 '';
23
24 meta = with lib; {
25 description = "Webinterface for Icinga 2";
26 longDescription = ''
27 A lightweight and extensible web interface to keep an eye on your environment.
28 Analyse problems and act on them.
29 '';
30 homepage = "https://www.icinga.com/products/icinga-web-2/";
31 license = licenses.gpl2Only;
32 maintainers = with maintainers; [ das_j ];
33 mainProgram = "icingacli";
34 platforms = platforms.all;
35 };
36}