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:
commit
5c63ee6216
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue