aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/icingaweb2/default.nix
blob: d28f15d5cab654c11de69bd8c24f46f247aa85bd (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
37
{ stdenv, fetchurl
, php
}:

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

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

  patches = [
    ./sproxy.patch
    ./php72.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
  '';
}