mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc, openssl, pkgconfig, unbound }:
|
|
|
|
let
|
|
version = "0.10.3.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "monero-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "monero-project";
|
|
repo = "monero";
|
|
rev = "v${version}";
|
|
sha256 = "1x6qjqijdbjyfb0dcjn46gp38hkb419skxansf9w2cjf58c2055n";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ boost miniupnpc openssl unbound ];
|
|
|
|
# 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;
|
|
|
|
installPhase = ''
|
|
install -Dt "$out/bin/" \
|
|
bin/monerod \
|
|
bin/monero-blockchain-export \
|
|
bin/monero-blockchain-import \
|
|
bin/monero-utils-deserialize \
|
|
bin/monero-wallet-cli \
|
|
bin/monero-wallet-rpc
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Private, secure, untraceable currency";
|
|
homepage = https://getmonero.org/;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.ehmry ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|