]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - pkgs/webapps/infcloud/default.nix
Add backup directory for oldies
[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.1";
4 name = "InfCloud-${version}";
5 src = fetchzip {
6 url = "https://www.inf-it.com/InfCloud_${version}.zip";
7 sha256 = "1fjhs0cj0b9fhf5ysfz281mknmmg1z551bas143sxfcqlpa5aiiq";
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 }