diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-04-12 20:00:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 20:00:31 +0200 |
commit | 6a1a6b9a5bf8e0ee9afb5db03fbf5eb0d0ca8c15 (patch) | |
tree | 40e06ed9582a365f5f1e5827f58123998ebbe66b /pkgs/servers | |
parent | 5f64fa1744508caf1d65347deee61dec501cc2b6 (diff) | |
parent | fd18ed96f2ff51bddc21f174b2e43efecc17cc64 (diff) |
Merge pull request #80910 from fkstef/fix/rainloop-update
rainloop: 1.13.0 -> 1.14.0
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/rainloop/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/servers/rainloop/default.nix b/pkgs/servers/rainloop/default.nix index 6d5016961e983..bff5d2ea30629 100644 --- a/pkgs/servers/rainloop/default.nix +++ b/pkgs/servers/rainloop/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, dataPath ? "/etc/rainloop" }: let +{ stdenv, fetchurl, unzip, pkgs, dataPath ? "/var/lib/rainloop" }: let common = { edition, sha256 }: stdenv.mkDerivation (rec { pname = "rainloop${stdenv.lib.optionalString (edition != "") "-${edition}"}"; @@ -16,11 +16,23 @@ sha256 = sha256; }; + includeScript = pkgs.writeText "include.php" '' + <?php + + /** + * @return string + */ + function __get_custom_data_full_path() + { + return '${dataPath}'; // custom data folder path + } + ''; + installPhase = '' mkdir $out cp -r rainloop/* $out rm -rf $out/data - ln -s ${dataPath} $out/data + cp ${includeScript} $out/include.php ''; meta = with stdenv.lib; { |