diff options
author | Georges Dubus <georges.dubus@gmail.com> | 2014-10-08 17:39:58 +0200 |
---|---|---|
committer | Georges Dubus <georges.dubus@gmail.com> | 2014-10-08 17:39:58 +0200 |
commit | 8441d45055f5479caa41b5db6aec6512f7b9bcb2 (patch) | |
tree | 9cf576c4eec165119f7608231bc1d52ee92953e6 /pkgs/tools | |
parent | 302fd99a1139e3119e8b1690832ddc0c991d7a5d (diff) | |
parent | 672654f9e980b896688d7c3e48ecf85553f2a948 (diff) | |
download | nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.tar nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.tar.gz nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.tar.bz2 nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.tar.lz nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.tar.xz nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.tar.zst nixpkgs-8441d45055f5479caa41b5db6aec6512f7b9bcb2.zip |
Merge pull request #4420 from flazz/master
new: gist – cli for gist.github.com
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/gist/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/text/gist/default.nix b/pkgs/tools/text/gist/default.nix new file mode 100644 index 00000000000..1ac9901a8e1 --- /dev/null +++ b/pkgs/tools/text/gist/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, fetchurl +, makeWrapper +, ruby +, rake +}: + +let version = "v4.3.0"; +in stdenv.mkDerivation rec { + 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 = { + 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; + }; +} |