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";
|
2020-04-01 02:11:51 +01: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
|
|
|
}
|