nixpkgs/pkgs/applications/networking/instant-messengers/pybitmessage/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2016-08-14 11:37:20 +01:00
{ stdenv, fetchFromGitHub, pythonPackages, openssl }:
2016-01-05 22:29:11 +00:00
stdenv.mkDerivation rec {
name = "pybitmessage-${version}";
version = "0.4.4";
src = fetchFromGitHub {
owner = "bitmessage";
repo = "PyBitmessage";
rev = "v${version}";
sha256 = "1f4h0yc1mfjnxzvxiv9hxgak59mgr3a5ykv50vlyiay82za20jax";
};
2016-10-13 23:03:12 +01:00
buildInputs = with pythonPackages; [ python pyqt4 wrapPython ] ++ [ openssl ];
2016-01-05 22:29:11 +00:00
preConfigure = ''
substituteInPlace Makefile \
--replace "PREFIX?=/usr/local" "" \
--replace "/usr" ""
'';
makeFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
substituteInPlace $out/bin/pybitmessage \
2016-08-14 11:37:20 +01:00
--replace "exec python2" "exec ${pythonPackages.python}/bin/python" \
--replace "/opt/openssl-compat-bitcoin/lib/" "${openssl.out}/lib/"
2016-01-05 22:29:11 +00:00
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;
2016-01-05 22:29:11 +00:00
};
}