mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
34 lines
745 B
Nix
34 lines
745 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 ];
|
|
|
|
unpackPhase = ":";
|
|
|
|
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;
|
|
};
|
|
}
|