2014-11-15 10:57:44 +01:00
|
|
|
{ stdenv, fetchurl, python3 }:
|
2014-04-03 16:39:46 +02:00
|
|
|
|
2014-11-15 10:57:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-04-03 16:39:46 +02:00
|
|
|
version = "1.4.1";
|
|
|
|
name = "pastebinit-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/pastebinit/trunk/${version}/+download/${name}.tar.bz2";
|
2014-10-12 16:13:21 +02:00
|
|
|
sha256 = "1rl854izwn1fpaaib6zj7a1a9bis8n7w4zfxcapgfffj37zj0dy2";
|
2014-04-03 16:39:46 +02:00
|
|
|
};
|
|
|
|
|
2014-11-15 10:57:44 +01:00
|
|
|
buildInputs = [ python3 ];
|
2014-04-03 16:39:46 +02: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;
|
|
|
|
};
|
|
|
|
}
|