mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
I do not have the time or energy to handle all of this. Let alone my GitHub notifications. This PR is in good faith and does not refer to anything community-related. I will keep on doing nixpkgs work but the pile of shame (let's call it that) needs to be cleaned. Thanks to @mweinelt which whom I had a discussion and who made me aware of this issue.
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
php83,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "icingaweb2";
|
|
version = "2.12.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Icinga";
|
|
repo = "icingaweb2";
|
|
rev = "v${version}";
|
|
hash = "sha256-iKxvrZcwzUoh+TVsmx8jVjwHeklT1+dqzhY4kBbOB8Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share
|
|
cp -ra application bin etc library modules public schema $out
|
|
cp -ra doc $out/share
|
|
|
|
wrapProgram $out/bin/icingacli --prefix PATH : "${lib.makeBinPath [ php83 ]}"
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) icingaweb2; };
|
|
|
|
meta = {
|
|
description = "Webinterface for Icinga 2";
|
|
longDescription = ''
|
|
A lightweight and extensible web interface to keep an eye on your environment.
|
|
Analyse problems and act on them.
|
|
'';
|
|
homepage = "https://www.icinga.com/products/icinga-web-2/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ helsinki-Jo ];
|
|
mainProgram = "icingacli";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|