blob: 67355539d7374586f71edc586ab047d6ce6782a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ davical_config ? "/etc/davical/config.php", stdenv, fetchurl, gettext }:
stdenv.mkDerivation rec {
version = "1.1.9.2";
name = "davical-${version}";
src = fetchurl {
url = "https://www.davical.org/downloads/davical_${version}.orig.tar.xz";
sha256 = "133p7fl544df2rqw1nbnj5nj6bvb9kng9q0c3iqrqlpawq3a6ilh";
};
unpackCmd = ''
tar --one-top-level -xf $curSrc
'';
makeFlags = "all";
installPhase = ''
mkdir -p $out
cp -ra config dba docs htdocs inc locale po scripts testing zonedb $out
ln -s ${davical_config} $out/config/config.php
'';
buildInputs = [ gettext ];
}
|