mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
06c6d4696d
Also, in case of collectd, the -lgcc_s shouldn't be needed anymore, as the library is in ${glibc}/lib/ now, which is practically always on RPATH. In case of seyren it was some stdenv change uncovering the mistake of putting src into buildInputs.
41 lines
996 B
Nix
41 lines
996 B
Nix
{ stdenv, fetchurl, cmake, boost }:
|
|
|
|
let
|
|
version = "0.8.8.4";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "monero-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/monero-project/bitmonero/archive/v${version}.tar.gz";
|
|
sha256 = "0bbhqjjzh922aymjqrnl2hd3r8x6p7x5aa5jidv3l4d77drhlgzy";
|
|
};
|
|
|
|
buildInputs = [ cmake boost ];
|
|
|
|
# these tests take a long time and don't
|
|
# always complete in the build environment
|
|
postPatch = "sed -i '/add_subdirectory(tests)/d' CMakeLists.txt";
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
|
|
|
doCheck = false;
|
|
checkTarget = "test-release"; # this would be the target
|
|
|
|
installPhase = ''
|
|
installBin \
|
|
src/bitmonerod \
|
|
src/connectivity_tool \
|
|
src/simpleminer \
|
|
src/simplewallet
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Private, secure, untraceable currency";
|
|
homepage = http://monero.cc/;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.emery ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|