27 lines
737 B
Nix
27 lines
737 B
Nix
{ buildRubyGem, lib, ruby, makeWrapper }:
|
|
|
|
buildRubyGem rec {
|
|
inherit ruby;
|
|
name = "${gemName}-${version}";
|
|
gemName = "gist";
|
|
version = "4.6.2";
|
|
source.sha256 = "0zrw84k2982aiansmv2aj3101d3giwa58221n6aisvg5jq5kmiib";
|
|
|
|
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;
|
|
|
|
meta = with lib; {
|
|
description = "Upload code to https://gist.github.com (or github enterprise)";
|
|
homepage = http://defunkt.io/gist/;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
platforms = ruby.meta.platforms;
|
|
};
|
|
}
|