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