My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/text/papertrail/default.nix

31 lines
826 B

{ 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 {
pname = "papertrail";
version = (import ./gemset.nix).papertrail.version;
dontUnpack = true;
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;
};
}