Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b162b400073c
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5c63ee6216a7
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 25, 2018

  1. Copy the full SHA
    eec630f View commit details

Commits on Nov 5, 2018

  1. Merge pull request #49104 from zarelit/mailcatcher_rework

    mailcatcher: repackage using bundlerApp
    Mic92 authored Nov 5, 2018
    Copy the full SHA
    5c63ee6 View commit details
Showing with 6 additions and 24 deletions.
  1. +6 −24 pkgs/development/web/mailcatcher/default.nix
30 changes: 6 additions & 24 deletions pkgs/development/web/mailcatcher/default.nix
Original file line number Diff line number Diff line change
@@ -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;