summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorgoibhniu <cillian.deroiste@gmail.com>2016-01-12 19:07:01 +0100
committergoibhniu <cillian.deroiste@gmail.com>2016-01-12 19:07:01 +0100
commit022a05b07b24ec4c2795e3972a4f7e6d248d99b2 (patch)
tree69dd0b1fc14458d07762708194adb4f2064c3588 /pkgs
parent23772ef0a26fe631cde87690ecc586c598e2f3d9 (diff)
parenta8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b (diff)
downloadnixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.tar
nixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.tar.gz
nixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.tar.bz2
nixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.tar.lz
nixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.tar.xz
nixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.tar.zst
nixpkgs-022a05b07b24ec4c2795e3972a4f7e6d248d99b2.zip
Merge pull request #12169 from jgillich/pybitmessage
pybitmessage: init at 0.4.4
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/instant-messengers/pybitmessage/default.nix39
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix b/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix
new file mode 100644
index 00000000000..c19b5ff31f9
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchFromGitHub, python, pythonPackages, pyqt4, openssl }:
+
+stdenv.mkDerivation rec {
+  name = "pybitmessage-${version}";
+
+  version = "0.4.4";
+
+  src = fetchFromGitHub {
+    owner = "bitmessage";
+    repo = "PyBitmessage";
+    rev = "v${version}";
+    sha256 = "1f4h0yc1mfjnxzvxiv9hxgak59mgr3a5ykv50vlyiay82za20jax";
+  };
+
+  buildInputs = [ python pyqt4 openssl pythonPackages.wrapPython pythonPackages.sqlite3 ];
+
+  preConfigure = ''
+    substituteInPlace Makefile \
+      --replace "PREFIX?=/usr/local" "" \
+      --replace "/usr" ""
+  '';
+
+  makeFlags = [ "DESTDIR=$(out)" ];
+
+  postInstall = ''
+    substituteInPlace $out/bin/pybitmessage \
+      --replace "exec python2" "exec ${python}/bin/python" \
+      --replace "/opt/openssl-compat-bitcoin/lib/" "${openssl}/lib/"
+    wrapProgram $out/bin/pybitmessage \
+      --prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://bitmessage.org/;
+    description = "The official Bitmessage client";
+    license = licenses.mit;
+    maintainers = with maintainers; [ jgillich ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e0bd48f3f5d..73a4c899823 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12877,6 +12877,8 @@ let
 
   puremapping = callPackage ../applications/audio/pd-plugins/puremapping { };
 
+  pybitmessage = callPackage ../applications/networking/instant-messengers/pybitmessage { };
+
   pythonmagick = callPackage ../applications/graphics/PythonMagick { };
 
   qbittorrent = callPackage ../applications/networking/p2p/qbittorrent {