2019-07-22 13:02:47 +01:00
|
|
|
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
2017-04-24 16:04:32 +01:00
|
|
|
|
|
|
|
let
|
2019-08-13 22:52:01 +01:00
|
|
|
papertrail-env = bundlerEnv {
|
2017-04-24 16:04:32 +01:00
|
|
|
name = "papertrail-env";
|
|
|
|
inherit ruby;
|
|
|
|
gemfile = ./Gemfile;
|
|
|
|
lockfile = ./Gemfile.lock;
|
|
|
|
gemset = ./gemset.nix;
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "papertrail-${(import ./gemset.nix).papertrail.version}";
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${papertrail-env}/bin/papertrail $out/bin/papertrail
|
|
|
|
'';
|
2019-07-22 13:02:47 +01:00
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "papertrail";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command-line client for Papertrail log management service";
|
2019-11-16 00:41:23 +00:00
|
|
|
homepage = https://github.com/papertrail/papertrail-cli/;
|
2019-07-22 13:02:47 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
|
|
platforms = ruby.meta.platforms;
|
|
|
|
};
|
2017-04-24 16:04:32 +01:00
|
|
|
}
|