summary refs log tree commit diff
path: root/pkgs/servers/roundcube
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-01-29 11:59:52 +0100
committerRobin Gloster <mail@glob.in>2019-02-08 13:35:09 +0000
commit2820e1df5ca3bd3a60a61aeee68adae1b9274afe (patch)
tree685c5f7b6c683573bd9721c01d6ba6e48dc6a7d7 /pkgs/servers/roundcube
parentb584a786ecd588c7c08a19f568463d9e6b446d80 (diff)
downloadnixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.tar
nixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.tar.gz
nixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.tar.bz2
nixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.tar.lz
nixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.tar.xz
nixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.tar.zst
nixpkgs-2820e1df5ca3bd3a60a61aeee68adae1b9274afe.zip
roundcubePlugins: init
This meta-package is supposed to contain third-party roundcube plugins
such as `persistent_login` that will be linked into the roundcube
derivation.
Diffstat (limited to 'pkgs/servers/roundcube')
-rw-r--r--pkgs/servers/roundcube/plugins/default.nix11
-rw-r--r--pkgs/servers/roundcube/plugins/persistent_login/default.nix13
-rw-r--r--pkgs/servers/roundcube/plugins/plugins.nix9
-rw-r--r--pkgs/servers/roundcube/plugins/roundcube-plugin.nix7
4 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/servers/roundcube/plugins/default.nix b/pkgs/servers/roundcube/plugins/default.nix
new file mode 100644
index 00000000000..42333b69eb1
--- /dev/null
+++ b/pkgs/servers/roundcube/plugins/default.nix
@@ -0,0 +1,11 @@
+{ newScope, pkgs }:
+
+let
+
+  callPackage = newScope (pkgs // plugins);
+
+  plugins = import ./plugins.nix { inherit callPackage; };
+
+in
+
+  plugins
diff --git a/pkgs/servers/roundcube/plugins/persistent_login/default.nix b/pkgs/servers/roundcube/plugins/persistent_login/default.nix
new file mode 100644
index 00000000000..b66386222f7
--- /dev/null
+++ b/pkgs/servers/roundcube/plugins/persistent_login/default.nix
@@ -0,0 +1,13 @@
+{ roundcubePlugin, fetchFromGitHub }:
+
+roundcubePlugin rec {
+  pname = "persistent_login";
+  version = "5.1.0";
+
+  src = fetchFromGitHub {
+    owner = "mfreiholz";
+    repo = pname;
+    rev = "version-${version}";
+    sha256 = "1k2jgbshwig8q5l440y59pgwbfbc0pdrjbpihba834a4pm0y6anl";
+  };
+}
diff --git a/pkgs/servers/roundcube/plugins/plugins.nix b/pkgs/servers/roundcube/plugins/plugins.nix
new file mode 100644
index 00000000000..4eed1227be6
--- /dev/null
+++ b/pkgs/servers/roundcube/plugins/plugins.nix
@@ -0,0 +1,9 @@
+{ callPackage }:
+
+{
+  inherit callPackage;
+
+  roundcubePlugin = callPackage ./roundcube-plugin.nix { };
+
+  persistent_login = callPackage ./persistent_login { };
+}
diff --git a/pkgs/servers/roundcube/plugins/roundcube-plugin.nix b/pkgs/servers/roundcube/plugins/roundcube-plugin.nix
new file mode 100644
index 00000000000..a756a3140cb
--- /dev/null
+++ b/pkgs/servers/roundcube/plugins/roundcube-plugin.nix
@@ -0,0 +1,7 @@
+{ runCommand }:
+{ pname, version, src }:
+
+runCommand "roundcube-plugin-${pname}-${version}" { } ''
+  mkdir -p $out/plugins/
+  cp -r ${src} $out/plugins/${pname}
+''