From 37e67f9888ef832acdf4e577478115ce7d233182 Mon Sep 17 00:00:00 2001 From: Joachim Schiele Date: Wed, 28 Mar 2012 13:21:42 +0000 Subject: wgetpaste is a handy shell utility getting things pasted on pasting services online svn path=/nixpkgs/trunk/; revision=33450 --- pkgs/tools/text/wgetpaste/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/tools/text/wgetpaste/default.nix (limited to 'pkgs/tools/text/wgetpaste') diff --git a/pkgs/tools/text/wgetpaste/default.nix b/pkgs/tools/text/wgetpaste/default.nix new file mode 100644 index 000000000000..c9993ec4282d --- /dev/null +++ b/pkgs/tools/text/wgetpaste/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchurl, wget, bash, coreutils}: + stdenv.mkDerivation rec { + version = "2.18"; + name = "wgetpaste-${version}"; + src = fetchurl { + url = "http://wgetpaste.zlin.dk/${name}.tar.bz2"; + sha256 = "95ee46eac37ca74ce960c1726afc19f4a1dde4d1875ac860fdc5e45d3cb05d3e"; + }; + # currently zsh-autocompletion support is not installed + + prePatch = '' + substituteInPlace wgetpaste --replace "/usr/bin/env bash" "${bash}/bin/bash" + ''; + + installPhase = '' + mkdir -p $out/bin; + cp wgetpaste $out/bin; + ''; + + meta = { + description = "wgetpaste"; + homepage = http://wgetpaste.zlin.dk/; + license = "publicDomain"; + maintainers = with stdenv.lib.maintainers; [qknight]; + }; + } -- cgit 1.4.1