mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
gist: fix evaluation
This commit is contained in:
parent
0b9af69347
commit
1057f2e8ad
2
pkgs/tools/text/gist/Gemfile
Normal file
2
pkgs/tools/text/gist/Gemfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
gem "gist"
|
10
pkgs/tools/text/gist/Gemfile.lock
Normal file
10
pkgs/tools/text/gist/Gemfile.lock
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
gist (4.3.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
gist
|
@ -1,32 +1,15 @@
|
|||||||
{ stdenv
|
{ stdenv, lib, bundlerEnv }:
|
||||||
, fetchurl
|
|
||||||
, makeWrapper
|
|
||||||
, ruby
|
|
||||||
, rake
|
|
||||||
}:
|
|
||||||
|
|
||||||
let version = "v4.3.0";
|
let version = "4.3.0";
|
||||||
in stdenv.mkDerivation rec {
|
in bundlerEnv {
|
||||||
name = "gist-${version}";
|
name = "gist-${version}";
|
||||||
|
gemfile = ./Gemfile;
|
||||||
src = fetchurl {
|
lockfile = ./Gemfile.lock;
|
||||||
url = "https://github.com/defunkt/gist/archive/${version}.tar.gz";
|
gemset = ./gemset.nix;
|
||||||
sha256 = "92b91ffe07cc51ca8576b091e7123b851ee0d7d2d3f0e21d18b19d8bd8f9aa47";
|
meta = with lib; {
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ rake makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
rake install prefix=$out
|
|
||||||
|
|
||||||
wrapProgram $out/bin/gist \
|
|
||||||
--prefix PATH : ${ruby}/bin \
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "http://defunkt.io/gist/";
|
homepage = "http://defunkt.io/gist/";
|
||||||
description = "upload code to https://gist.github.com (or github enterprise)";
|
description = "upload code to https://gist.github.com (or github enterprise)";
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
9
pkgs/tools/text/gist/gemset.nix
Normal file
9
pkgs/tools/text/gist/gemset.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"gist" = {
|
||||||
|
version = "4.3.0";
|
||||||
|
source = {
|
||||||
|
type = "gem";
|
||||||
|
sha256 = "0az6l8nq433sszailr7kglh21l3gkcb11k7ag6668nyxxplm9rp0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -727,8 +727,7 @@ let
|
|||||||
|
|
||||||
fop = callPackage ../tools/typesetting/fop { };
|
fop = callPackage ../tools/typesetting/fop { };
|
||||||
|
|
||||||
# Evaluation broken by recent ruby changes.
|
gist = callPackage ../tools/text/gist { };
|
||||||
# gist = callPackage ../tools/text/gist { };
|
|
||||||
|
|
||||||
mcrl = callPackage ../tools/misc/mcrl { };
|
mcrl = callPackage ../tools/misc/mcrl { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user