]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - pkgs/status_engine/interface.nix
Small adjustments for naemon and web server
[perso/Immae/Config/Nix.git] / pkgs / status_engine / interface.nix
1 { stdenv, composerEnv, fetchurl, callPackage, config_file ? "/var/lib/status_engine/interface.yml" }:
2 composerEnv.buildPackage (
3 import ./interface_php_packages.nix { inherit composerEnv fetchurl; } // rec {
4 pname = "interface";
5 version = "3.4.0";
6 name = "${pname}-${version}";
7 src = fetchurl {
8 url = "https://github.com/statusengine/${pname}/archive/${version}.tar.gz";
9 sha256 = "1l11cskv740xvqs9a2yj9zkvgvxvymaq5qap36g2r4hkqbfbbjj2";
10 };
11 unpackPhase = null;
12 postUnpack = ''
13 src=$(pwd)/$sourceRoot
14 '';
15 postInstall = ''
16 ln -s ${config_file} $out/etc/config.yml
17 '';
18 preInstall = ''
19 cp ${./interface_composer.lock} $out/composer.lock
20 '';
21 })