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 {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue