diff options
Diffstat (limited to 'pkgs/dovecot/plugins/deleted_to_trash/default.nix')
-rw-r--r-- | pkgs/dovecot/plugins/deleted_to_trash/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/dovecot/plugins/deleted_to_trash/default.nix b/pkgs/dovecot/plugins/deleted_to_trash/default.nix new file mode 100644 index 0000000..db1afb5 --- /dev/null +++ b/pkgs/dovecot/plugins/deleted_to_trash/default.nix | |||
@@ -0,0 +1,21 @@ | |||
1 | { stdenv, fetchurl, dovecot, mylibs, fetchpatch }: | ||
2 | |||
3 | stdenv.mkDerivation (mylibs.fetchedGithub ./dovecot-deleted_to_trash.json // rec { | ||
4 | buildInputs = [ dovecot ]; | ||
5 | patches = [ | ||
6 | (fetchpatch { | ||
7 | name = "fix-dovecot-2.3.diff"; | ||
8 | url = "https://github.com/lexbrugman/dovecot_deleted_to_trash/commit/c52a3799a96104a603ade33404ef6aa1db647b2f.diff"; | ||
9 | sha256 = "0pld3rdcjp9df2qxbp807k6v4f48lyk0xy5q508ypa57d559y6dq"; | ||
10 | }) | ||
11 | ./fix_mbox.patch | ||
12 | ]; | ||
13 | preConfigure = '' | ||
14 | substituteInPlace Makefile --replace \ | ||
15 | "/usr/include/dovecot" \ | ||
16 | "${dovecot}/include/dovecot" | ||
17 | substituteInPlace Makefile --replace \ | ||
18 | "/usr/lib/dovecot/modules" \ | ||
19 | "$out/lib/dovecot" | ||
20 | ''; | ||
21 | }) | ||