a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
30 lines
825 B
Nix
30 lines
825 B
Nix
{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
|
|
|
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}";
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
ln -s ${papertrail-env}/bin/papertrail $out/bin/papertrail
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "papertrail";
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|