add papertrail at 0.10.1

Thank you @grahamc <3
This commit is contained in:
Domen Kožar 2017-04-24 17:04:32 +02:00
parent 125cf35273
commit 9f11d17ed2
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
6 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"
gem "papertrail"

View file

@ -0,0 +1,17 @@
GEM
remote: https://rubygems.org/
specs:
ansi (1.5.0)
chronic (0.10.2)
papertrail (0.10.1)
ansi (~> 1.5)
chronic (~> 0.10)
PLATFORMS
ruby
DEPENDENCIES
papertrail
BUNDLED WITH
1.14.4

View file

@ -0,0 +1,21 @@
{ 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
'';
}

View file

@ -0,0 +1,26 @@
{
ansi = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "14ims9zfal4gs2wpx2m5rd8zsrl2k794d359shkrsgg3fhr2a22l";
type = "gem";
};
version = "1.5.0";
};
chronic = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "1hrdkn4g8x7dlzxwb1rfgr8kw3bp4ywg5l4y4i9c2g5cwv62yvvn";
type = "gem";
};
version = "0.10.2";
};
papertrail = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "0vb7bh7qh5hr4v3w711bl0yrr3rlhz5c3h3qx3fq31dr5y4100v7";
type = "gem";
};
version = "0.10.1";
};
}

View file

@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "papertrail";
src = ./.;
buildInputs = with pkgs; [
bundix
bundler
ruby
];
shellHook = ''
truncate --size 0 Gemfile.lock
bundle install --path=vendor/bundle
rm -rf vendor .bundle
bundix
'';
}

View file

@ -3378,6 +3378,8 @@ with pkgs;
paper-gtk-theme = callPackage ../misc/themes/paper { };
paperwork = callPackage ../applications/office/paperwork { };
papertrail = callPackage ../tools/text/papertrail { };
par2cmdline = callPackage ../tools/networking/par2cmdline { };