aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/icingaweb2/default.nix
blob: 40aebb029fe322ac6c2e3387902b1397ad5d30fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl
, php
}:

stdenv.mkDerivation rec {
  version = "2.6.0";
  name = "icingaweb2-${version}";

  src = fetchurl {
    url = "https://github.com/Icinga/icingaweb2/archive/v${version}.tar.gz";
    sha256 = "1m0gi8zbrag4jwdcqicq5bb3s07z7kz0fg41a22cbqlgx6adivaa";
  };

  patches = [
    ./sproxy.patch
  ];

  buildPhase = "true";

  installPhase = ''
    mkdir -p $out
    cp -a * $out

    cd $out
    rm -rvf \
        .??* \
        Vagrantfile \
        icingaweb2.spec \
        modules/doc \
        modules/setup \
        modules/test \
        modules/translation \
        packages \
        test
  '';
}