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
|
|
@ -0,0 +1,27 @@
|
|||
From c1832eabb99cec47f1714f696275285e1e28da34 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Bosch <maximilian@mbosch.me>
|
||||
Date: Tue, 2 Apr 2019 16:20:50 +0200
|
||||
Subject: [PATCH] Don't resolve symlinks when trying to find INSTALL_PATH
|
||||
|
||||
Nix specific patch. This behavior breaks roundcube setups where plugins
|
||||
are in a store path with symlinks to the actual source.
|
||||
---
|
||||
bin/update.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bin/update.sh b/bin/update.sh
|
||||
index 08e3bb5..b2ad498 100755
|
||||
--- a/bin/update.sh
|
||||
+++ b/bin/update.sh
|
||||
@@ -19,7 +19,7 @@
|
||||
+-----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
-define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
|
||||
+define('INSTALL_PATH', dirname(dirname($argv[0])).'/');
|
||||
|
||||
require_once INSTALL_PATH . 'program/include/clisetup.php';
|
||||
|
||||
--
|
||||
2.19.2
|
||||
|
||||
36
pkgs/servers/roundcube/default.nix
Normal file
36
pkgs/servers/roundcube/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ fetchurl, lib, stdenv, buildEnv, roundcube, roundcubePlugins }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "roundcube";
|
||||
version = "1.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/roundcube/roundcubemail/releases/download/${version}/roundcubemail-${version}-complete.tar.gz";
|
||||
sha256 = "sha256-8DloOBFW/nkNhYr34GnFVQqFd/uWT5ZiRDSJUnIFODg=";
|
||||
};
|
||||
|
||||
patches = [ ./0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r * $out/
|
||||
ln -sf /etc/roundcube/config.inc.php $out/config/config.inc.php
|
||||
rm -rf $out/installer
|
||||
# shut up updater
|
||||
rm $out/composer.json-dist
|
||||
'';
|
||||
|
||||
passthru.withPlugins = f: buildEnv {
|
||||
name = "${roundcube.name}-with-plugins";
|
||||
paths = (f roundcubePlugins) ++ [ roundcube ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Open Source Webmail Software";
|
||||
maintainers = with lib.maintainers; [ vskilet globin ma27 ];
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
11
pkgs/servers/roundcube/plugins/carddav/default.nix
Normal file
11
pkgs/servers/roundcube/plugins/carddav/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ roundcubePlugin, fetchzip }:
|
||||
|
||||
roundcubePlugin rec {
|
||||
pname = "carddav";
|
||||
version = "4.3.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/mstilkerich/rcmcarddav/releases/download/v${version}/carddav-v${version}.tar.gz";
|
||||
sha256 = "1jk1whx155svfalf1kq8vavn7jsswmzx4ax5zbj01783rqyxkkd5";
|
||||
};
|
||||
}
|
||||
11
pkgs/servers/roundcube/plugins/default.nix
Normal file
11
pkgs/servers/roundcube/plugins/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ newScope, pkgs }:
|
||||
|
||||
let
|
||||
|
||||
callPackage = newScope (pkgs // plugins);
|
||||
|
||||
plugins = import ./plugins.nix { inherit callPackage; };
|
||||
|
||||
in
|
||||
|
||||
plugins
|
||||
13
pkgs/servers/roundcube/plugins/persistent_login/default.nix
Normal file
13
pkgs/servers/roundcube/plugins/persistent_login/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ roundcubePlugin, fetchFromGitHub }:
|
||||
|
||||
roundcubePlugin rec {
|
||||
pname = "persistent_login";
|
||||
version = "5.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mfreiholz";
|
||||
repo = pname;
|
||||
rev = "version-${version}";
|
||||
sha256 = "1qf7q1sypwa800pgxa3bg6ngcpkf4dqgg6jqx8cnd6cb7ikbfldb";
|
||||
};
|
||||
}
|
||||
10
pkgs/servers/roundcube/plugins/plugins.nix
Normal file
10
pkgs/servers/roundcube/plugins/plugins.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ callPackage }:
|
||||
|
||||
{
|
||||
inherit callPackage;
|
||||
|
||||
roundcubePlugin = callPackage ./roundcube-plugin.nix { };
|
||||
|
||||
carddav = callPackage ./carddav { };
|
||||
persistent_login = callPackage ./persistent_login { };
|
||||
}
|
||||
7
pkgs/servers/roundcube/plugins/roundcube-plugin.nix
Normal file
7
pkgs/servers/roundcube/plugins/roundcube-plugin.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ runCommand }:
|
||||
{ pname, version, src }:
|
||||
|
||||
runCommand "roundcube-plugin-${pname}-${version}" { } ''
|
||||
mkdir -p $out/plugins/
|
||||
cp -r ${src} $out/plugins/${pname}
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue