nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 971 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 wget, 6 bash, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "wgetpaste"; 11 version = "2.34"; 12 13 src = fetchurl { 14 url = "https://github.com/zlin/wgetpaste/releases/download/${finalAttrs.version}/wgetpaste-${finalAttrs.version}.tar.xz"; 15 sha256 = "sha256-vW0G7ZAaPWPJyMVxJghP8JlPCZAb+xY4uHlT6sHpQz8="; 16 }; 17 # currently zsh-autocompletion support is not installed 18 19 prePatch = '' 20 substituteInPlace wgetpaste --replace "/usr/bin/env bash" "${bash}/bin/bash" 21 substituteInPlace wgetpaste --replace "LC_ALL=C wget" "LC_ALL=C ${wget}/bin/wget" 22 ''; 23 24 installPhase = '' 25 mkdir -p $out/bin; 26 cp wgetpaste $out/bin; 27 ''; 28 29 meta = { 30 description = "Command-line interface to various pastebins"; 31 mainProgram = "wgetpaste"; 32 homepage = "https://github.com/zlin/wgetpaste"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ 35 qknight 36 ]; 37 platforms = lib.platforms.all; 38 }; 39})