nixpkgs-suyu/pkgs/applications/misc/monero/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2017-03-06 10:15:10 +01:00
{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc, openssl, pkgconfig, unbound }:
let
2017-05-15 15:34:17 +02:00
version = "0.10.3.1";
in
stdenv.mkDerivation {
name = "monero-${version}";
2016-07-30 02:37:49 +02:00
src = fetchFromGitHub {
owner = "monero-project";
2017-01-17 01:28:39 +01:00
repo = "monero";
2016-07-30 02:37:49 +02:00
rev = "v${version}";
2017-05-15 15:34:17 +02:00
sha256 = "1x6qjqijdbjyfb0dcjn46gp38hkb419skxansf9w2cjf58c2055n";
};
2016-07-30 02:37:49 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
2017-03-06 10:15:10 +01:00
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/" \
2017-01-17 01:28:39 +01:00
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";
2017-01-17 01:28:39 +01:00
homepage = https://getmonero.org/;
license = licenses.bsd3;
maintainers = [ maintainers.ehmry ];
platforms = [ "x86_64-linux" ];
};
2014-09-19 19:56:08 +02:00
}