diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-01-29 11:59:52 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2019-02-08 13:35:09 +0000 |
commit | 2820e1df5ca3bd3a60a61aeee68adae1b9274afe (patch) | |
tree | 685c5f7b6c683573bd9721c01d6ba6e48dc6a7d7 /pkgs/servers/roundcube | |
parent | b584a786ecd588c7c08a19f568463d9e6b446d80 (diff) |
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.nix | 11 | ||||
-rw-r--r-- | pkgs/servers/roundcube/plugins/persistent_login/default.nix | 13 | ||||
-rw-r--r-- | pkgs/servers/roundcube/plugins/plugins.nix | 9 | ||||
-rw-r--r-- | pkgs/servers/roundcube/plugins/roundcube-plugin.nix | 7 |
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 0000000000000..42333b69eb15d --- /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 0000000000000..b66386222f76c --- /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 0000000000000..4eed1227be68c --- /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 0000000000000..a756a3140cb2e --- /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} +'' |