]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - pkgs/webapps/infcloud/default.nix
Small adjustments for naemon and web server
[perso/Immae/Config/Nix.git] / pkgs / webapps / infcloud / default.nix
1 { infcloud_config ? ./infcloud_config.js, stdenv, fetchzip, ed }:
2 stdenv.mkDerivation rec {
3 version = "0.13.2rc1";
4 name = "InfCloud-${version}";
5 src = fetchzip {
6 url = "https://www.inf-it.com/InfCloud_${version}.zip";
7 sha256 = "1qgw6l7ccfkyzcw9dxcjwhxw9q27c0x9w584amc579mmrn9ppz3n";
8 };
9 buildPhase = ''
10 patchShebangs .
11 ./cache_update.sh
12 rm config.js
13 '';
14 installPhase = ''
15 cp -a . $out
16 ln -s ${infcloud_config} $out/config.js
17 '';
18 buildInputs = [ ed ];
19 }