mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
Merge pull request #80910 from fkstef/fix/rainloop-update
rainloop: 1.13.0 -> 1.14.0
This commit is contained in:
commit
6a1a6b9a5b
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, unzip, dataPath ? "/etc/rainloop" }: let
|
{ stdenv, fetchurl, unzip, pkgs, dataPath ? "/var/lib/rainloop" }: let
|
||||||
common = { edition, sha256 }:
|
common = { edition, sha256 }:
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
pname = "rainloop${stdenv.lib.optionalString (edition != "") "-${edition}"}";
|
pname = "rainloop${stdenv.lib.optionalString (edition != "") "-${edition}"}";
|
||||||
@ -16,11 +16,23 @@
|
|||||||
sha256 = sha256;
|
sha256 = sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
includeScript = pkgs.writeText "include.php" ''
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function __get_custom_data_full_path()
|
||||||
|
{
|
||||||
|
return '${dataPath}'; // custom data folder path
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -r rainloop/* $out
|
cp -r rainloop/* $out
|
||||||
rm -rf $out/data
|
rm -rf $out/data
|
||||||
ln -s ${dataPath} $out/data
|
cp ${includeScript} $out/include.php
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user