2014-11-15 12:57:44 +03:00
|
|
|
{ stdenv, fetchurl, python3 }:
|
2014-04-03 18:39:46 +04:00
|
|
|
|
2014-11-15 12:57:44 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 20:32:04 +03:00
|
|
|
version = "1.5";
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "pastebinit";
|
2014-04-03 18:39:46 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "https://launchpad.net/pastebinit/trunk/${version}/+download/${pname}-${version}.tar.bz2";
|
2018-02-27 20:32:04 +03:00
|
|
|
sha256 = "0mw48fgm9lyh9d3pw997fccmglzsjccf2y347gxjas74wx6aira2";
|
2014-04-03 18:39:46 +04:00
|
|
|
};
|
|
|
|
|
2014-11-15 12:57:44 +03:00
|
|
|
buildInputs = [ python3 ];
|
2014-04-03 18:39:46 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/etc
|
|
|
|
cp -a pastebinit $out/bin
|
|
|
|
cp -a pastebin.d $out/etc
|
|
|
|
substituteInPlace $out/bin/pastebinit --replace "'/etc/pastebin.d" "'$out/etc/pastebin.d"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://launchpad.net/pastebinit;
|
|
|
|
description = "A software that lets you send anything you want directly to a pastebin from the command line";
|
|
|
|
maintainers = with maintainers; [ lethalman ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|