about summary refs log tree commit diff
path: root/pkgs/tools/misc/pastebinit/default.nix
blob: cf41de29c500810112a27bb0ee087e017fd2e7ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, python3Packages }:

python3Packages.buildPythonPackage rec {
  version = "1.4.1";
  name = "pastebinit-${version}";

  src = fetchurl {
    url = "https://launchpad.net/pastebinit/trunk/${version}/+download/${name}.tar.bz2";
    md5 = "b771872a9483cf92be90a3e4420fd3c9";
  };

  configurePhase = "export DETERMINISTIC_BUILD=1";

  buildPhase = "";

  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"
  '';

  doCheck = false;

  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;
  };
}