1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/tools/text/gist/default.nix
Aneesh Agrawal 36f1bcbeb8 ruby treewide: don't merge source into top-level
Keep the `source` attrset distinct to prevent its entries from merging
with the top level attrs.
Since each type of source has a different set of entries for `source`,
this is the easiest way to keep them together.
This will pave the way for a new `url` type of source.

This is a mass-rebuild of many ruby packages,
notably those using `git` type sources.
2018-01-04 02:28:33 -05:00

28 lines
737 B
Nix

{ buildRubyGem, lib, ruby, makeWrapper }:
buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "gist";
version = "4.6.1";
source.sha256 = "16qvmn7syvcf4lnblngzvq8xynvb62h1xhfc7xfb0c1sjh166hff";
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;
};
}