From 82de6b87d6922b10adafc166a031c081157b0d3f Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 15 Sep 2014 15:31:15 -0400 Subject: [PATCH] monero: intial expression for 0.8.8.3 http://monero.cc --- pkgs/applications/misc/monero/default.nix | 37 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/misc/monero/default.nix diff --git a/pkgs/applications/misc/monero/default.nix b/pkgs/applications/misc/monero/default.nix new file mode 100644 index 00000000000..9370844ffe9 --- /dev/null +++ b/pkgs/applications/misc/monero/default.nix @@ -0,0 +1,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 = platforms.all; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b617c55359c..25ea536e1a4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9437,6 +9437,8 @@ let moc = callPackage ../applications/audio/moc { }; + monero = callPackage ../applications/misc/monero { }; + monkeysAudio = callPackage ../applications/audio/monkeys-audio { }; monodevelop = callPackage ../applications/editors/monodevelop {