evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / pa / papertrail / package.nix
bloba01bc3fb889cbcae2b52c886254d72f122dfa503
1 { lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript, testers, papertrail }:
3 let
4   papertrail-env = bundlerEnv {
5     name = "papertrail-env";
6     inherit ruby;
7     gemfile = ./Gemfile;
8     lockfile = ./Gemfile.lock;
9     gemset = ./gemset.nix;
10   };
11 in stdenv.mkDerivation {
12   pname = "papertrail";
13   version = (import ./gemset.nix).papertrail.version;
15   dontUnpack = true;
17   installPhase = ''
18     mkdir -p $out/bin
19     ln -s ${papertrail-env}/bin/papertrail $out/bin/papertrail
20   '';
22   passthru.updateScript = bundlerUpdateScript "papertrail";
24   passthru.tests.version = testers.testVersion { package = papertrail; };
26   meta = with lib; {
27     description = "Command-line client for Papertrail log management service";
28     mainProgram = "papertrail";
29     homepage    = "https://github.com/papertrail/papertrail-cli/";
30     license     = licenses.mit;
31     maintainers = with maintainers; [ nicknovitski ];
32     platforms   = ruby.meta.platforms;
33   };