]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Rename davical config field to avoid clash
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 6 May 2019 12:07:03 +0000 (14:07 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 6 May 2019 12:07:03 +0000 (14:07 +0200)
nixops/modules/websites/tools/dav/davical.nix
pkgs/webapps/davical/default.nix

index 6b37f11b3505d206b9101e1210842b31cab3459a..634359dabe0b0afa2a62133a5acaaba596885152 100644 (file)
@@ -59,7 +59,7 @@ rec {
       include('drivers_ldap.php');
     '';
   }];
-  webapp = davical.override { config = "/var/secrets/webapps/dav-davical"; };
+  webapp = davical.override { davical_config = "/var/secrets/webapps/dav-davical"; };
   webRoot = "${webapp}/htdocs";
   apache = rec {
     user = "wwwrun";
index fefc00fe46585f9967864fb2150efa137658798c..52d873664f722f4aead70a8d10b4f104c2e615af 100644 (file)
@@ -1,4 +1,4 @@
-{ config ? "/etc/davical/config.php", stdenv, fetchurl, gettext }:
+{ davical_config ? "/etc/davical/config.php", stdenv, fetchurl, gettext }:
 stdenv.mkDerivation rec {
   version = "1.1.7";
   name = "davical-${version}";
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
   installPhase = ''
     mkdir -p $out
     cp -ra config dba docs htdocs inc locale po scripts testing zonedb $out
-    ln -s ${config} $out/config/config.php
+    ln -s ${davical_config} $out/config/config.php
   '';
   buildInputs = [ gettext ];
 }