diff options
author | Jakob Gillich <jakob@gillich.me> | 2016-01-05 23:29:11 +0100 |
---|---|---|
committer | Jakob Gillich <jakob@gillich.me> | 2016-01-12 02:43:00 +0100 |
commit | a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b (patch) | |
tree | 14a714f17bb7fcda5b9321ff48894cb8dad0f306 /pkgs/applications/networking | |
parent | 60598311480a0f21599faed31c87fd7e75adbaaa (diff) | |
download | nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.tar nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.tar.gz nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.tar.bz2 nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.tar.lz nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.tar.xz nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.tar.zst nixlib-a8f526432c15c8448dc9dfc3bbc3ec7853a1ef3b.zip |
pybitmessage: init at 0.4.4
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/pybitmessage/default.nix | 39 |
1 files changed, 39 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 000000000000..c19b5ff31f9d --- /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 ]; + }; +} |