2016-02-21 18:22:59 +00:00
|
|
|
{ buildRubyGem, lib, ruby, makeWrapper }:
|
|
|
|
|
|
|
|
buildRubyGem rec {
|
|
|
|
inherit ruby;
|
|
|
|
name = "${gemName}-${version}";
|
|
|
|
gemName = "gist";
|
2017-08-10 03:52:16 +01:00
|
|
|
version = "4.6.1";
|
|
|
|
sha256 = "16qvmn7syvcf4lnblngzvq8xynvb62h1xhfc7xfb0c1sjh166hff";
|
2016-02-21 18:22:59 +00:00
|
|
|
|
|
|
|
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 22:48:30 +00:00
|
|
|
meta = with lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Upload code to https://gist.github.com (or github enterprise)";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://defunkt.io/gist/;
|
2015-01-24 22:48:30 +00:00
|
|
|
license = licenses.mit;
|
2016-02-21 18:22:59 +00:00
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
platforms = ruby.meta.platforms;
|
2014-10-08 13:24:36 +01:00
|
|
|
};
|
|
|
|
}
|