Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

mailcatcher: repackage using bundlerApp

+6 -24
+6 -24
pkgs/development/web/mailcatcher/default.nix
··· 1 - { stdenv, bundlerEnv, ruby, makeWrapper }: 2 - 3 - stdenv.mkDerivation rec { 4 - name = "mailcatcher-${version}"; 5 - 6 - version = (import ./gemset.nix).mailcatcher.version; 7 - 8 - env = bundlerEnv { 9 - name = "${name}-gems"; 10 - 11 - inherit ruby; 12 - 13 - gemdir = ./.; 14 - }; 15 - 16 - buildInputs = [ makeWrapper ]; 17 18 - unpackPhase = ":"; 19 20 - installPhase = '' 21 - mkdir -p $out/bin 22 - makeWrapper ${env}/bin/mailcatcher $out/bin/mailcatcher 23 - makeWrapper ${env}/bin/catchmail $out/bin/catchmail 24 - ''; 25 - 26 - meta = with stdenv.lib; { 27 description = "SMTP server and web interface to locally test outbound emails"; 28 homepage = https://mailcatcher.me/; 29 license = licenses.mit;
··· 1 + { lib, bundlerApp }: 2 3 + bundlerApp { 4 + pname = "mailcatcher"; 5 + gemdir = ./.; 6 + exes = [ "mailcatcher" "catchmail" ]; 7 8 + meta = with lib; { 9 description = "SMTP server and web interface to locally test outbound emails"; 10 homepage = https://mailcatcher.me/; 11 license = licenses.mit;