summary refs log tree commit diff
path: root/pkgs/applications/misc/monero/default.nix
blob: 30abcdb74b2bc2ef547c6f8e085cee578a95261e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ 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";
  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" ];
  };
}