Merge pull request #49104 from zarelit/mailcatcher_rework

mailcatcher: repackage using bundlerApp
This commit is contained in:
Jörg Thalheim 2018-11-05 16:12:09 +00:00 committed by GitHub
commit 5c63ee6216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,29 +1,11 @@
{ stdenv, bundlerEnv, ruby, makeWrapper }:
{ lib, bundlerApp }:
stdenv.mkDerivation rec {
name = "mailcatcher-${version}";
bundlerApp {
pname = "mailcatcher";
gemdir = ./.;
exes = [ "mailcatcher" "catchmail" ];
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; {
meta = with lib; {
description = "SMTP server and web interface to locally test outbound emails";
homepage = https://mailcatcher.me/;
license = licenses.mit;