mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
pybitmessage: 0.4.4 -> 0.6.2
This commit is contained in:
parent
ca8eed1732
commit
3ee20b2de7
@ -1,33 +1,29 @@
|
|||||||
{ stdenv, fetchFromGitHub, pythonPackages, openssl }:
|
{ stdenv, fetchFromGitHub, pythonPackages, openssl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
name = "pybitmessage-${version}";
|
name = "pybitmessage-${version}";
|
||||||
|
|
||||||
version = "0.4.4";
|
version = "0.6.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bitmessage";
|
owner = "bitmessage";
|
||||||
repo = "PyBitmessage";
|
repo = "PyBitmessage";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1f4h0yc1mfjnxzvxiv9hxgak59mgr3a5ykv50vlyiay82za20jax";
|
sha256 = "04sgns9qczzw2152gqdr6bjyy4fmgs26cz8n3qck94l0j51rxhz8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [ python pyqt4 wrapPython ] ++ [ openssl ];
|
propagatedBuildInputs = with pythonPackages; [ msgpack pyqt4 ] ++ [ openssl ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace setup.py \
|
||||||
--replace "PREFIX?=/usr/local" "" \
|
--replace "nothing = raw_input()" pass \
|
||||||
--replace "/usr" ""
|
--replace 'print "It looks like building the package failed.\n" \' pass \
|
||||||
|
--replace ' "You may be missing a C++ compiler and the OpenSSL headers."' pass
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "DESTDIR=$(out)" ];
|
makeWrapperArgs = ''
|
||||||
|
--prefix LD_LIBRARY_PATH : "${openssl.out}/lib/"
|
||||||
postInstall = ''
|
|
||||||
substituteInPlace $out/bin/pybitmessage \
|
|
||||||
--replace "exec python2" "exec ${pythonPackages.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; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user