2021-01-11 07:54:33 +00:00
|
|
|
{ lib, 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}";
|
|
|
|
|
2021-07-20 09:58:53 +00:00
|
|
|
dontUnpack = true;
|
2017-04-24 15:04:32 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-22 12:02:47 +00:00
|
|
|
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
|
|
|
}
|