1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/text/papertrail/default.nix
Domen Kožar 9f11d17ed2
add papertrail at 0.10.1
Thank you @grahamc <3
2017-04-24 17:05:03 +02:00

22 lines
498 B
Nix

{ stdenv, bundlerEnv, ruby}:
let
# To update, just run `nix-shell` in this directory.
papertrail-env = bundlerEnv rec {
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
'';
}