1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 20:12:52 +00:00
nixpkgs/pkgs/development/web/mailcatcher/default.nix

34 lines
745 B
Nix
Raw Normal View History

2017-07-01 22:40:11 +01:00
{ 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 ];
2017-07-03 09:43:30 +01:00
unpackPhase = ":";
2017-07-01 22:40:11 +01:00
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;
};
}