uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/servers/rainloop/default.nix
Normal file
59
pkgs/servers/rainloop/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib, stdenv, fetchurl, unzip, pkgs, dataPath ? "/var/lib/rainloop" }: let
|
||||
common = { edition, sha256 }:
|
||||
stdenv.mkDerivation (rec {
|
||||
pname = "rainloop${lib.optionalString (edition != "") "-${edition}"}";
|
||||
version = "1.16.0";
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
unpackPhase = ''
|
||||
mkdir rainloop
|
||||
unzip -q -d rainloop $src
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/RainLoop/rainloop-webmail/releases/download/v${version}/rainloop-${edition}${lib.optionalString (edition != "") "-"}${version}.zip";
|
||||
sha256 = sha256;
|
||||
};
|
||||
|
||||
includeScript = pkgs.writeText "include.php" ''
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function __get_custom_data_full_path()
|
||||
{
|
||||
$v = getenv('RAINLOOP_DATA_DIR', TRUE);
|
||||
return $v === FALSE ? '${dataPath}' : $v;
|
||||
}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r rainloop/* $out
|
||||
rm -rf $out/data
|
||||
cp ${includeScript} $out/include.php
|
||||
mkdir $out/data
|
||||
chmod 700 $out/data
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple, modern & fast web-based email client";
|
||||
homepage = "https://www.rainloop.net";
|
||||
downloadPage = "https://github.com/RainLoop/rainloop-webmail/releases";
|
||||
license = with licenses; if edition == "" then unfree else agpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ das_j ];
|
||||
};
|
||||
});
|
||||
in {
|
||||
rainloop-community = common {
|
||||
edition = "community";
|
||||
sha256 = "sha256-25ScQ2OwSKAuqg8GomqDhpebhzQZjCk57h6MxUNiymc=";
|
||||
};
|
||||
rainloop-standard = common {
|
||||
edition = "";
|
||||
sha256 = "sha256-aYCwqFqhJEeakn4R0MUDGcSp+M47JbbCrbYaML8aeSs=";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue