nixpkgs/pkgs/tools/text/papertrail/default.nix
c0bw3b 9367367dfd Treewide: fix URL permanent redirects
Permanent redirects on homepages and/or source URLs
as reported by Repology
2019-11-16 01:41:23 +01:00

31 lines
825 B
Nix

{ 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 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;
};
}