1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/tools/text/papertrail/default.nix

31 lines
825 B
Nix
Raw Normal View History

{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
let
2019-08-13 22:52:01 +01:00
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 stdenv.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;
};
}