summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorLuca Bruno <luca.bruno@immobiliare.it>2014-04-03 16:39:46 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-04-06 11:10:24 +0200
commit1653c118bd079d0ba19fc85c8abe94e35739db53 (patch)
tree0cdf21c412cef979c5acb9f85f1665326804e413 /pkgs/tools/misc
parent85b1ede2bfa8c8e7cf946a7372d3b05f15e7735a (diff)
downloadnixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.tar
nixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.tar.gz
nixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.tar.bz2
nixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.tar.lz
nixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.tar.xz
nixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.tar.zst
nixlib-1653c118bd079d0ba19fc85c8abe94e35739db53.zip
pastebinit: new package
A software that lets you send anything you want directly to a pastebin from the command line

https://launchpad.net/pastebinit
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/pastebinit/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pastebinit/default.nix b/pkgs/tools/misc/pastebinit/default.nix
new file mode 100644
index 000000000000..cf41de29c500
--- /dev/null
+++ b/pkgs/tools/misc/pastebinit/default.nix
@@ -0,0 +1,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;
+  };
+}