From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- flakes/mypackages/pkgs/webapps/davical/default.nix | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 flakes/mypackages/pkgs/webapps/davical/default.nix (limited to 'flakes/mypackages/pkgs/webapps/davical/default.nix') diff --git a/flakes/mypackages/pkgs/webapps/davical/default.nix b/flakes/mypackages/pkgs/webapps/davical/default.nix new file mode 100644 index 0000000..045a93b --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/davical/default.nix @@ -0,0 +1,23 @@ +{ davical_config ? "/etc/davical/config.php", stdenv, fetchurl, gettext }: +stdenv.mkDerivation rec { + version = "1.1.10"; + name = "davical-${version}"; + src = fetchurl { + url = "https://www.davical.org/downloads/davical_${version}.orig.tar.xz"; + sha256 = "1d8zw558qrz2rybdv853ai04ar7v5a2dsypnffapx9ihgnrv4hq3"; + }; + unpackCmd = '' + tar --one-top-level -xf $curSrc + ''; + makeFlags = "all"; + patchPhase = '' + # https://gitlab.com/davical-project/davical/-/issues/229 + sed -i -e 's/"newpass1"/"newpass1", "password"/g' htdocs/always.php + ''; + 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 ]; +} -- cgit v1.2.3