at v206 29 lines 863 B view raw
1{ stdenv, fetchurl, python3 }: 2 3stdenv.mkDerivation rec { 4 version = "1.4.1"; 5 name = "pastebinit-${version}"; 6 7 src = fetchurl { 8 url = "https://launchpad.net/pastebinit/trunk/${version}/+download/${name}.tar.bz2"; 9 sha256 = "1rl854izwn1fpaaib6zj7a1a9bis8n7w4zfxcapgfffj37zj0dy2"; 10 }; 11 12 buildInputs = [ python3 ]; 13 14 installPhase = '' 15 mkdir -p $out/bin 16 mkdir -p $out/etc 17 cp -a pastebinit $out/bin 18 cp -a pastebin.d $out/etc 19 substituteInPlace $out/bin/pastebinit --replace "'/etc/pastebin.d" "'$out/etc/pastebin.d" 20 ''; 21 22 meta = with stdenv.lib; { 23 homepage = https://launchpad.net/pastebinit; 24 description = "A software that lets you send anything you want directly to a pastebin from the command line"; 25 maintainers = with maintainers; [ lethalman ]; 26 license = licenses.gpl2; 27 platforms = platforms.linux; 28 }; 29}