forked from mirrors/nixpkgs
gist: 4.6.2 -> 5.0.0, simplify
* default wrapper works fine now AFAICT * Not sure that 'dontStrip' does anything here (regardless doesn't seem to be useful any longer)
This commit is contained in:
parent
713afc7e00
commit
97c8ede6cb
1 changed files with 3 additions and 13 deletions
|
@ -1,21 +1,11 @@
|
||||||
{ buildRubyGem, lib, ruby, makeWrapper }:
|
{ buildRubyGem, lib, ruby }:
|
||||||
|
|
||||||
buildRubyGem rec {
|
buildRubyGem rec {
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
name = "${gemName}-${version}";
|
name = "${gemName}-${version}";
|
||||||
gemName = "gist";
|
gemName = "gist";
|
||||||
version = "4.6.2";
|
version = "5.0.0";
|
||||||
source.sha256 = "0zrw84k2982aiansmv2aj3101d3giwa58221n6aisvg5jq5kmiib";
|
source.sha256 = "1i0a73mzcjv4mj5vjqwkrx815ydsppx3v812lxxd9mk2s7cj1vyd";
|
||||||
|
|
||||||
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; {
|
meta = with lib; {
|
||||||
description = "Upload code to https://gist.github.com (or github enterprise)";
|
description = "Upload code to https://gist.github.com (or github enterprise)";
|
||||||
|
|
Loading…
Add table
Reference in a new issue