forked from mirrors/nixpkgs
new: gist – cli for gist.github.com
This commit is contained in:
parent
585325dc14
commit
672654f9e9
32
pkgs/tools/text/gist/default.nix
Normal file
32
pkgs/tools/text/gist/default.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -677,6 +677,8 @@ let
|
||||||
|
|
||||||
fop = callPackage ../tools/typesetting/fop { };
|
fop = callPackage ../tools/typesetting/fop { };
|
||||||
|
|
||||||
|
gist = callPackage ../tools/text/gist { };
|
||||||
|
|
||||||
mcrl = callPackage ../tools/misc/mcrl { };
|
mcrl = callPackage ../tools/misc/mcrl { };
|
||||||
|
|
||||||
mcrl2 = callPackage ../tools/misc/mcrl2 { };
|
mcrl2 = callPackage ../tools/misc/mcrl2 { };
|
||||||
|
|
Loading…
Reference in a new issue