depot/third_party/nixpkgs/pkgs/tools/misc/pastebinit/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
865 B
Nix

{ stdenv, fetchurl, python3 }:
stdenv.mkDerivation rec {
version = "1.5";
pname = "pastebinit";
src = fetchurl {
url = "https://launchpad.net/pastebinit/trunk/${version}/+download/${pname}-${version}.tar.bz2";
sha256 = "0mw48fgm9lyh9d3pw997fccmglzsjccf2y347gxjas74wx6aira2";
};
buildInputs = [ python3 ];
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;
};
}