mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
parent
885acea1dd
commit
17ad5ab0a9
@ -1,2 +0,0 @@
|
||||
source "https://rubygems.org"
|
||||
gem "gist"
|
@ -1,10 +0,0 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
gist (4.4.2)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
gist
|
@ -1,15 +1,27 @@
|
||||
{ stdenv, lib, bundlerEnv }:
|
||||
{ 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;
|
||||
|
||||
let version = "4.4.2";
|
||||
in bundlerEnv {
|
||||
name = "gist-${version}";
|
||||
gemfile = ./Gemfile;
|
||||
lockfile = ./Gemfile.lock;
|
||||
gemset = ./gemset.nix;
|
||||
meta = with lib; {
|
||||
homepage = "http://defunkt.io/gist/";
|
||||
description = "upload code to https://gist.github.com (or github enterprise)";
|
||||
platforms = platforms.all;
|
||||
homepage = "http://defunkt.io/gist/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ zimbatm ];
|
||||
platforms = ruby.meta.platforms;
|
||||
};
|
||||
}
|
||||
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"gist" = {
|
||||
version = "4.4.2";
|
||||
source = {
|
||||
type = "gem";
|
||||
sha256 = "0lr4rywpm549llk0ypdpb3sjdpqw9snzwzqc3dggg8qn5wj69k81";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user