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

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

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

  patches = [ ./sproxy.patch ];

  buildPhase = "true";

  installPhase = ''
    mkdir -p $out
    cp -a * $out
    rm -rf $out/.puppet
    rm -rf $out/Vagrantfile
    rm -rf $out/icingaweb2.spec
    rm -rf $out/modules/doc
    rm -rf $out/modules/iframe
    rm -rf $out/modules/setup
    rm -rf $out/modules/test
    rm -rf $out/packages
    rm -rf $out/test
  '';
}