Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5f64fa174450
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6a1a6b9a5bf8
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 2, 2020

  1. rainloop: 1.13.0 -> 1.14.0

    - update version
    - change mechanism to set the data folder outside the nix store
    haskelious committed Mar 2, 2020
    Copy the full SHA
    fd18ed9 View commit details

Commits on Apr 12, 2020

  1. Merge pull request #80910 from fkstef/fix/rainloop-update

    rainloop: 1.13.0 -> 1.14.0
    Ma27 authored Apr 12, 2020
    Copy the full SHA
    6a1a6b9 View commit details
Showing with 14 additions and 2 deletions.
  1. +14 −2 pkgs/servers/rainloop/default.nix
16 changes: 14 additions & 2 deletions pkgs/servers/rainloop/default.nix
Original file line number Diff line number Diff line change
@@ -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; {