diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-01-24 17:48:30 -0500 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-01-25 16:22:30 -0500 |
commit | 1057f2e8ad64a0a154dfa547aa30a75d0c1a0240 (patch) | |
tree | 15845b2c4855d22f868710fa189e3c478705165d /pkgs/tools/text/gist | |
parent | 0b9af69347b1eb19381a1eabb679985ab6013081 (diff) |
gist: fix evaluation
Diffstat (limited to 'pkgs/tools/text/gist')
-rw-r--r-- | pkgs/tools/text/gist/Gemfile | 2 | ||||
-rw-r--r-- | pkgs/tools/text/gist/Gemfile.lock | 10 | ||||
-rw-r--r-- | pkgs/tools/text/gist/default.nix | 35 | ||||
-rw-r--r-- | pkgs/tools/text/gist/gemset.nix | 9 |
4 files changed, 30 insertions, 26 deletions
diff --git a/pkgs/tools/text/gist/Gemfile b/pkgs/tools/text/gist/Gemfile new file mode 100644 index 000000000000..18500f898f1c --- /dev/null +++ b/pkgs/tools/text/gist/Gemfile @@ -0,0 +1,2 @@ +source "https://rubygems.org" +gem "gist" diff --git a/pkgs/tools/text/gist/Gemfile.lock b/pkgs/tools/text/gist/Gemfile.lock new file mode 100644 index 000000000000..a2d2659b69a0 --- /dev/null +++ b/pkgs/tools/text/gist/Gemfile.lock @@ -0,0 +1,10 @@ +GEM + remote: https://rubygems.org/ + specs: + gist (4.3.0) + +PLATFORMS + ruby + +DEPENDENCIES + gist diff --git a/pkgs/tools/text/gist/default.nix b/pkgs/tools/text/gist/default.nix index 1ac9901a8e17..0833fd6ce186 100644 --- a/pkgs/tools/text/gist/default.nix +++ b/pkgs/tools/text/gist/default.nix @@ -1,32 +1,15 @@ -{ stdenv -, fetchurl -, makeWrapper -, ruby -, rake -}: +{ stdenv, lib, bundlerEnv }: -let version = "v4.3.0"; -in stdenv.mkDerivation rec { +let version = "4.3.0"; +in bundlerEnv { name = "gist-${version}"; - - src = fetchurl { - url = "https://github.com/defunkt/gist/archive/${version}.tar.gz"; - sha256 = "92b91ffe07cc51ca8576b091e7123b851ee0d7d2d3f0e21d18b19d8bd8f9aa47"; - }; - - buildInputs = [ rake makeWrapper ]; - - installPhase = '' - rake install prefix=$out - - wrapProgram $out/bin/gist \ - --prefix PATH : ${ruby}/bin \ - ''; - - meta = { + 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 = stdenv.lib.platforms.all; - license = stdenv.lib.licenses.mit; + platforms = platforms.all; + license = licenses.mit; }; } diff --git a/pkgs/tools/text/gist/gemset.nix b/pkgs/tools/text/gist/gemset.nix new file mode 100644 index 000000000000..7d207374fe3b --- /dev/null +++ b/pkgs/tools/text/gist/gemset.nix @@ -0,0 +1,9 @@ +{ + "gist" = { + version = "4.3.0"; + source = { + type = "gem"; + sha256 = "0az6l8nq433sszailr7kglh21l3gkcb11k7ag6668nyxxplm9rp0"; + }; + }; +}
\ No newline at end of file |