blob: 7ee4889f531a51f174bb4e674e59fc5c6c6c371e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ stdenv, composerEnv, fetchurl, callPackage, config_file ? "/var/lib/status_engine/interface.yml" }:
composerEnv.buildPackage (
import ./interface_php_packages.nix { inherit composerEnv fetchurl; } // rec {
pname = "interface";
version = "3.4.0";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/statusengine/${pname}/archive/${version}.tar.gz";
sha256 = "1l11cskv740xvqs9a2yj9zkvgvxvymaq5qap36g2r4hkqbfbbjj2";
};
unpackPhase = null;
postUnpack = ''
src=$(pwd)/$sourceRoot
'';
postInstall = ''
ln -s ${config_file} $out/etc/config.yml
'';
preInstall = ''
cp ${./interface_composer.lock} $out/composer.lock
'';
})
|