at 17.09-beta 30 lines 893 B view raw
1{ stdenv, fetchurl, wget, bash, coreutils }: 2 3stdenv.mkDerivation rec { 4 version = "2.28"; 5 name = "wgetpaste-${version}"; 6 7 src = fetchurl { 8 url = "http://wgetpaste.zlin.dk/${name}.tar.bz2"; 9 sha256 = "1hh9svyypqcvdg5mjxyyfzpdzhylhf7s7xq5dzglnm4injx3i3ak"; 10 }; 11 # currently zsh-autocompletion support is not installed 12 13 prePatch = '' 14 substituteInPlace wgetpaste --replace "/usr/bin/env bash" "${bash}/bin/bash" 15 substituteInPlace wgetpaste --replace "LC_ALL=C wget" "LC_ALL=C ${wget}/bin/wget" 16 ''; 17 18 installPhase = '' 19 mkdir -p $out/bin; 20 cp wgetpaste $out/bin; 21 ''; 22 23 meta = { 24 description = "Command-line interface to various pastebins"; 25 homepage = http://wgetpaste.zlin.dk/; 26 license = stdenv.lib.licenses.publicDomain; 27 maintainers = with stdenv.lib.maintainers; [ qknight domenkozar ndowens ]; 28 platforms = stdenv.lib.platforms.all; 29 }; 30}