2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
papertrail-env = bundlerEnv {
|
|
|
|
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-21 07:28:18 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${papertrail-env}/bin/papertrail $out/bin/papertrail
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "papertrail";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line client for Papertrail log management service";
|
|
|
|
homepage = "https://github.com/papertrail/papertrail-cli/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
|
|
platforms = ruby.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|