2016-02-21 19:22:59 +01:00
|
|
|
{ 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;
|
|
|
|
|
2015-01-24 23:48:30 +01:00
|
|
|
meta = with lib; {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Upload code to https://gist.github.com (or github enterprise)";
|
2016-02-21 19:22:59 +01:00
|
|
|
homepage = "http://defunkt.io/gist/";
|
2015-01-24 23:48:30 +01:00
|
|
|
license = licenses.mit;
|
2016-02-21 19:22:59 +01:00
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
platforms = ruby.meta.platforms;
|
2014-10-08 14:24:36 +02:00
|
|
|
};
|
|
|
|
}
|