gist: 4.4.2 -> 4.5.0

Fixes #13158
This commit is contained in:
zimbatm 2016-02-21 18:22:59 +00:00
parent 885acea1dd
commit 17ad5ab0a9
4 changed files with 21 additions and 30 deletions

View File

@ -1,2 +0,0 @@
source "https://rubygems.org"
gem "gist"

View File

@ -1,10 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
gist (4.4.2)
PLATFORMS
ruby
DEPENDENCIES
gist

View File

@ -1,15 +1,27 @@
{ stdenv, lib, bundlerEnv }:
{ buildRubyGem, lib, ruby, makeWrapper }:
buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "gist";
version = "4.5.0";
sha256 = "0k9bgjdmnr14whmjx6c8d5ak1dpazirj96hk5ds69rl5d9issw0l";
buildInputs = [ makeWrapper ];
postInstall = ''
# Fix the default ruby wrapper
makeWrapper $out/${ruby.gemPath}/bin/gist $out/bin/gist \
--set GEM_PATH $out/${ruby.gemPath}:${ruby}/${ruby.gemPath}
'';
dontStrip = true;
let version = "4.4.2";
in bundlerEnv {
name = "gist-${version}";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
meta = with lib; {
homepage = "http://defunkt.io/gist/";
description = "upload code to https://gist.github.com (or github enterprise)";
platforms = platforms.all;
homepage = "http://defunkt.io/gist/";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
platforms = ruby.meta.platforms;
};
}

View File

@ -1,9 +0,0 @@
{
"gist" = {
version = "4.4.2";
source = {
type = "gem";
sha256 = "0lr4rywpm549llk0ypdpb3sjdpqw9snzwzqc3dggg8qn5wj69k81";
};
};
}