2019-07-22 12:02:47 +00:00
|
|
|
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
2017-04-24 15:04:32 +00:00
|
|
|
|
|
|
|
let
|
2019-08-13 21:52:01 +00:00
|
|
|
papertrail-env = bundlerEnv {
|
2017-04-24 15:04:32 +00: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 12:02:47 +00:00
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "papertrail";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command-line client for Papertrail log management service";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/papertrail/papertrail-cli/";
|
2019-07-22 12:02:47 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
|
|
platforms = ruby.meta.platforms;
|
|
|
|
};
|
2017-04-24 15:04:32 +00:00
|
|
|
}
|