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 {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "papertrail";
|
|
|
|
version = (import ./gemset.nix).papertrail.version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "papertrail";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/papertrail/papertrail-cli/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
|
|
platforms = ruby.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|