diff options
| -rw-r--r-- | gnu/packages/finance.scm | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index dc79c4c011b..a1848b308a5 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm | |||
| @@ -400,3 +400,78 @@ other machines/servers. Electrum does not download the Bitcoin blockchain.") | |||
| 400 | "Monero is a secure, private, untraceable currency. This package provides the | 400 | "Monero is a secure, private, untraceable currency. This package provides the |
| 401 | Monero command line client and daemon.") | 401 | Monero command line client and daemon.") |
| 402 | (license license:bsd-3))) | 402 | (license license:bsd-3))) |
| 403 | |||
| 404 | (define-public monero-core | ||
| 405 | (package | ||
| 406 | (name "monero-core") | ||
| 407 | (version "0.11.0.0") | ||
| 408 | (source | ||
| 409 | (origin | ||
| 410 | (method url-fetch) | ||
| 411 | (uri (string-append "https://github.com/monero-project/monero-core/archive/v" | ||
| 412 | version ".tar.gz")) | ||
| 413 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 414 | (sha256 | ||
| 415 | (base32 | ||
| 416 | "0hnrkgwb1sva67pcjym2gvb4zifp2s849dfbnjzbxk3yczpcyqzg")))) | ||
| 417 | (build-system gnu-build-system) | ||
| 418 | (native-inputs | ||
| 419 | `(("doxygen" ,doxygen) | ||
| 420 | ("graphviz" ,graphviz) | ||
| 421 | ("pkg-config" ,pkg-config))) | ||
| 422 | (inputs | ||
| 423 | `(("boost" ,boost) | ||
| 424 | ("libunwind" ,libunwind) | ||
| 425 | ("openssl" ,openssl) | ||
| 426 | ("qt" ,qt) | ||
| 427 | ("unbound" ,unbound))) | ||
| 428 | (propagated-inputs | ||
| 429 | `(("monero" ,monero))) | ||
| 430 | (arguments | ||
| 431 | `(#:phases | ||
| 432 | (modify-phases %standard-phases | ||
| 433 | (delete 'configure) | ||
| 434 | (delete 'check) | ||
| 435 | (add-before 'build 'fix-makefile-vars | ||
| 436 | (lambda _ | ||
| 437 | (substitute* "src/zxcvbn-c/makefile" | ||
| 438 | (("\\?=") "=")) | ||
| 439 | #t)) | ||
| 440 | (add-after 'fix-makefile-vars 'fix-library-paths | ||
| 441 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 442 | (substitute* "monero-wallet-gui.pro" | ||
| 443 | (("-L/usr/local/lib") "") | ||
| 444 | (("-L/usr/local/opt/openssl/lib") | ||
| 445 | (string-append "-L" | ||
| 446 | (assoc-ref inputs "openssl") | ||
| 447 | "/lib")) | ||
| 448 | (("-L/usr/local/opt/boost/lib") | ||
| 449 | (string-append "-L" | ||
| 450 | (assoc-ref inputs "boost") | ||
| 451 | "/lib"))) | ||
| 452 | #t)) | ||
| 453 | (add-after 'fix-library-paths 'fix-monerod-path | ||
| 454 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 455 | (substitute* "src/daemon/DaemonManager.cpp" | ||
| 456 | (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod") | ||
| 457 | (string-append "\""(assoc-ref inputs "monero") | ||
| 458 | "/bin/monerod"))) | ||
| 459 | #t)) | ||
| 460 | (replace 'build | ||
| 461 | (lambda _ | ||
| 462 | (zero? (system* "./build.sh")))) | ||
| 463 | (add-after 'build 'fix-install-path | ||
| 464 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 465 | (substitute* "build/Makefile" | ||
| 466 | (("/opt/monero-wallet-gui") | ||
| 467 | (assoc-ref outputs "out"))) | ||
| 468 | #t)) | ||
| 469 | (add-before 'install 'change-dir | ||
| 470 | (lambda _ | ||
| 471 | (chdir "build")))))) | ||
| 472 | (home-page "https://getmonero.org/") | ||
| 473 | (synopsis "Graphical user interface for the Monero currency") | ||
| 474 | (description | ||
| 475 | "Monero is a secure, private, untraceable currency. This package provides the | ||
| 476 | Monero GUI client.") | ||
| 477 | (license license:bsd-3))) | ||
