Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, wget, bash }: 2 3stdenv.mkDerivation rec { 4 pname = "wgetpaste"; 5 version = "2.33"; 6 7 src = fetchurl { 8 url = "https://github.com/zlin/wgetpaste/releases/download/${version}/wgetpaste-${version}.tar.xz"; 9 sha256 = "sha256-6TWdhKOmO7vRKGIVNcUwLy46heI6UiAOgej6ubd+lxs="; 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 = "https://github.com/zlin/wgetpaste"; 26 license = lib.licenses.publicDomain; 27 maintainers = with lib.maintainers; [ qknight domenkozar ]; 28 platforms = lib.platforms.all; 29 }; 30}