1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

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

View file

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