From eec630fb1ecba8ef971372301e4e4048b6ff952a Mon Sep 17 00:00:00 2001 From: David Costa Date: Thu, 25 Oct 2018 14:34:11 +0100 Subject: [PATCH] mailcatcher: repackage using bundlerApp --- pkgs/development/web/mailcatcher/default.nix | 30 ++++---------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/pkgs/development/web/mailcatcher/default.nix b/pkgs/development/web/mailcatcher/default.nix index 49c5c4d81af1..a2fa509232de 100644 --- a/pkgs/development/web/mailcatcher/default.nix +++ b/pkgs/development/web/mailcatcher/default.nix @@ -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;