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