about summary refs log tree commit diff
path: root/pkgs/applications/misc/monero/default.nix
diff options
context:
space:
mode:
authorEmery Hemingway <emery@vfemail.net>2014-09-15 15:31:15 -0400
committerEmery Hemingway <emery@vfemail.net>2014-09-15 15:31:15 -0400
commit82de6b87d6922b10adafc166a031c081157b0d3f (patch)
tree459b55e67874835205aea56ed6a70656e876bb85 /pkgs/applications/misc/monero/default.nix
parent69c95e3fdf40650c8c0585420a2eb6dc7f288f43 (diff)
downloadnixlib-82de6b87d6922b10adafc166a031c081157b0d3f.tar
nixlib-82de6b87d6922b10adafc166a031c081157b0d3f.tar.gz
nixlib-82de6b87d6922b10adafc166a031c081157b0d3f.tar.bz2
nixlib-82de6b87d6922b10adafc166a031c081157b0d3f.tar.lz
nixlib-82de6b87d6922b10adafc166a031c081157b0d3f.tar.xz
nixlib-82de6b87d6922b10adafc166a031c081157b0d3f.tar.zst
nixlib-82de6b87d6922b10adafc166a031c081157b0d3f.zip
monero: intial expression for 0.8.8.3
http://monero.cc
Diffstat (limited to 'pkgs/applications/misc/monero/default.nix')
-rw-r--r--pkgs/applications/misc/monero/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/misc/monero/default.nix b/pkgs/applications/misc/monero/default.nix
new file mode 100644
index 000000000000..9370844ffe9e
--- /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