1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

41 lines
1.1 KiB
Nix

{ 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.out}/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 ];
platforms = with platforms; linux;
};
}