nixpkgs-suyu/pkgs/tools/text/gist/default.nix
Bjørn Forsman bd01fad0ed Captialize meta.description of all packages
In line with the Nixpkgs manual.

A mechanical change, done with this command:

  find pkgs -name "*.nix" | \
      while read f; do \
          sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \
      done

I manually skipped some:

* Descriptions starting with an abbreviation, a user name or package name
* Frequently generated expressions (haskell-packages.nix)
2016-06-20 13:55:52 +02:00

27 lines
732 B
Nix

{ 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;
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;
};
}