2023-06-16 10:30:12 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-02-23 23:12:00 +01:00
|
|
|
, fetchpatch
|
2023-06-16 10:30:12 +02:00
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, libsodium
|
|
|
|
, openssl
|
|
|
|
, rapidjson
|
|
|
|
, readline
|
|
|
|
, unbound
|
|
|
|
, zeromq
|
|
|
|
, darwin
|
2018-11-11 07:40:25 +01:00
|
|
|
}:
|
|
|
|
|
2023-06-16 10:30:12 +02:00
|
|
|
let
|
|
|
|
# submodules
|
|
|
|
miniupnp = fetchFromGitHub {
|
|
|
|
owner = "miniupnp";
|
|
|
|
repo = "miniupnp";
|
|
|
|
rev = "miniupnpc_2_2_1";
|
|
|
|
hash = "sha256-opd0hcZV+pjC3Mae3Yf6AR5fj6xVwGm9LuU5zEPxBKc=";
|
|
|
|
};
|
|
|
|
supercop = fetchFromGitHub {
|
|
|
|
owner = "monero-project";
|
|
|
|
repo = "supercop";
|
|
|
|
rev = "633500ad8c8759995049ccd022107d1fa8a1bbc9";
|
|
|
|
hash = "sha256-26UmESotSWnQ21VbAYEappLpkEMyl0jiuCaezRYd/sE=";
|
|
|
|
};
|
|
|
|
randomwow = fetchFromGitHub {
|
|
|
|
owner = "wownero-project";
|
|
|
|
repo = "RandomWOW";
|
|
|
|
rev = "607bad48f3687c2490d90f8c55efa2dcd7cbc195";
|
|
|
|
hash = "sha256-CJv96TbPv1k/C7MQWEntE6khIRX1iIEiF9wEdsQGiFQ=";
|
|
|
|
};
|
|
|
|
in
|
2018-11-11 07:40:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "wownero";
|
2023-06-16 10:30:12 +02:00
|
|
|
version = "0.11.0.1";
|
2018-11-11 07:40:25 +01:00
|
|
|
|
2023-06-16 10:30:12 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wownero-project";
|
2022-01-09 21:12:49 +01:00
|
|
|
repo = "wownero";
|
2020-07-10 09:00:13 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = false;
|
2023-06-16 10:30:12 +02:00
|
|
|
hash = "sha256-zmGsSbPpVwL0AhCQkdMKORruM5kYrrLe/BYfMphph8c=";
|
2018-11-11 07:40:25 +01:00
|
|
|
};
|
|
|
|
|
2024-02-23 23:12:00 +01:00
|
|
|
patches = [
|
|
|
|
# Fix gcc-13 build due to missing <cstdint> neaders
|
|
|
|
(fetchpatch {
|
|
|
|
name = "gcc-13.patch";
|
|
|
|
url = "https://git.wownero.com/wownero/wownero/commit/f983ac77805a494ea4a05a00398c553e1359aefd.patch";
|
|
|
|
hash = "sha256-9acQ4bHAKFR+lMgrpQyBmb+9YZYi1ywHoo1jBcIgmGs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-06-16 10:30:12 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2018-11-11 07:40:25 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-06-16 10:30:12 +02:00
|
|
|
boost
|
|
|
|
libsodium
|
|
|
|
openssl
|
|
|
|
rapidjson
|
|
|
|
readline
|
|
|
|
unbound
|
|
|
|
zeromq
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.IOKit
|
2019-06-04 02:02:52 +02:00
|
|
|
];
|
2018-11-11 07:40:25 +01:00
|
|
|
|
2020-05-20 03:44:58 +02:00
|
|
|
postUnpack = ''
|
2023-06-16 10:30:12 +02:00
|
|
|
rm -r $sourceRoot/external/miniupnp
|
|
|
|
ln -s ${miniupnp} $sourceRoot/external/miniupnp
|
|
|
|
|
|
|
|
rm -r $sourceRoot/external/randomwow
|
|
|
|
ln -s ${randomwow} $sourceRoot/external/randomwow
|
|
|
|
|
|
|
|
rm -r $sourceRoot/external/supercop
|
|
|
|
ln -s ${supercop} $sourceRoot/external/supercop
|
2020-05-20 03:44:58 +02:00
|
|
|
'';
|
|
|
|
|
2018-11-11 07:40:25 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
|
|
|
"-DMANUAL_SUBMODULES=ON"
|
2019-06-04 02:02:52 +02:00
|
|
|
];
|
2018-11-11 07:40:25 +01:00
|
|
|
|
2023-01-21 23:06:40 +01:00
|
|
|
meta = with lib; {
|
2019-11-12 05:46:02 +01:00
|
|
|
description = ''
|
|
|
|
A privacy-centric memecoin that was fairly launched on April 1, 2018 with
|
|
|
|
no pre-mine, stealth-mine or ICO
|
|
|
|
'';
|
2018-11-11 07:40:25 +01:00
|
|
|
longDescription = ''
|
2019-11-12 05:46:02 +01:00
|
|
|
Wownero has a maximum supply of around 184 million WOW with a slow and
|
|
|
|
steady emission over 50 years. It is a fork of Monero, but with its own
|
|
|
|
genesis block, so there is no degradation of privacy due to ring
|
|
|
|
signatures using different participants for the same tx outputs on
|
|
|
|
opposing forks.
|
2018-11-11 07:40:25 +01:00
|
|
|
'';
|
2023-06-16 10:30:12 +02:00
|
|
|
homepage = "https://wownero.org/";
|
|
|
|
license = licenses.bsd3;
|
2022-06-23 00:53:30 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-06-16 10:30:12 +02:00
|
|
|
platforms = platforms.unix;
|
2018-11-11 07:40:25 +01:00
|
|
|
};
|
|
|
|
}
|