aboutsummaryrefslogblamecommitdiff
path: root/pkgs/webapps/davical/default.nix
blob: 67355539d7374586f71edc586ab047d6ce6782a4 (plain) (tree)
1
2
3
4
5
6
7
                                                                          
                         
                      


                                                                             
                                                                    




                                   


                                                                           
                                                  


                            
{ 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 ];
}