nixpkgs/pkgs/development/web/mailcatcher/default.nix
2017-07-03 09:13:12 +02:00

34 lines
753 B
Nix

{ stdenv, bundlerEnv, ruby, makeWrapper }:
stdenv.mkDerivation rec {
name = "mailcatcher-${version}";
version = (import ./gemset.nix).mailcatcher.version;
env = bundlerEnv {
name = "${name}-gems";
inherit ruby;
gemdir = ./.;
};
buildInputs = [ makeWrapper ];
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/mailcatcher $out/bin/mailcatcher
makeWrapper ${env}/bin/catchmail $out/bin/catchmail
'';
meta = with stdenv.lib; {
description = "SMTP server and web interface to locally test outbound emails";
homepage = https://mailcatcher.me/;
license = licenses.mit;
maintainers = [ maintainers.zarelit ];
platforms = platforms.unix;
};
}