1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/pastebinit/default.nix
Ryan Mulligan 01dd922ca0 pastebinit: 1.4.1 -> 1.5
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/5jkp246zcc0k7lbrkngsr005brnf3giy-pastebinit-1.5/bin/pastebinit -h` got 0 exit code
- ran `/nix/store/5jkp246zcc0k7lbrkngsr005brnf3giy-pastebinit-1.5/bin/pastebinit -v` and found version 1.5
- ran `/nix/store/5jkp246zcc0k7lbrkngsr005brnf3giy-pastebinit-1.5/bin/pastebinit -h` and found version 1.5
- found 1.5 with grep in /nix/store/5jkp246zcc0k7lbrkngsr005brnf3giy-pastebinit-1.5
- found 1.5 in filename of file in /nix/store/5jkp246zcc0k7lbrkngsr005brnf3giy-pastebinit-1.5

cc "@lethalman"
2018-02-27 09:32:04 -08:00

30 lines
861 B
Nix

{ stdenv, fetchurl, python3 }:
stdenv.mkDerivation rec {
version = "1.5";
name = "pastebinit-${version}";
src = fetchurl {
url = "https://launchpad.net/pastebinit/trunk/${version}/+download/${name}.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;
};
}