diff --git a/pkgs/servers/snappymail/default.nix b/pkgs/servers/snappymail/default.nix new file mode 100644 index 000000000000..d26497d0e75c --- /dev/null +++ b/pkgs/servers/snappymail/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchurl, writeText +, dataPath ? "/var/lib/snappymail" }: +stdenv.mkDerivation rec { + pname = "snappymail"; + version = "2.17.0"; + + src = fetchurl { + url = "https://github.com/the-djmaze/snappymail/releases/download/v${version}/snappymail-${version}.tar.gz"; + sha256 = "sha256-Z8By/X4IheOyCT7F4KArBN+CFUTcSn0VZchcYhAJsCU="; + }; + + sourceRoot = "snappymail"; + + includeScript = writeText "include.php" '' +