-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dogecoin: restore #341302
base: master
Are you sure you want to change the base?
dogecoin: restore #341302
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,104 @@ | ||||||
{ | ||||||
lib, | ||||||
stdenv, | ||||||
fetchFromGitHub, | ||||||
pkg-config, | ||||||
autoreconfHook, | ||||||
db5, | ||||||
openssl, | ||||||
boost, | ||||||
zlib, | ||||||
miniupnpc, | ||||||
libevent, | ||||||
protobuf, | ||||||
qtbase ? null, | ||||||
wrapQtAppsHook ? null, | ||||||
qttools ? null, | ||||||
qmake ? null, | ||||||
qrencode, | ||||||
withGui, | ||||||
withUpnp ? false, | ||||||
withUtils ? true, | ||||||
withWallet ? true, | ||||||
withZmq ? true, | ||||||
zeromq, | ||||||
util-linux ? null, | ||||||
Cocoa ? null, | ||||||
}: | ||||||
|
||||||
stdenv.mkDerivation rec { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should use the The Why is this pattern preferred to Let's take this simple code example: mkDerivation rec {
foo = 1;
bar = foo + 1;
} and then Let me share a couple of useful links regarding the
Feel free to reach out if you need some assistance. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i didnt really write that rec part, and i do personally try to avoid it if you look at each commit seperately, youll see the first one is a revert of somebody deleting dogecoin entirely, which is where the rec came from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You could argue that This should be reviewed as a new-package PR, because it adds a package which did not exist. You could reference the previous commit, but now that code is under your contribution and you are responsible for it. But anyway, I think |
||||||
pname = "dogecoin" + lib.optionalString (!withGui) "d"; | ||||||
version = "1.14.8"; | ||||||
|
||||||
src = fetchFromGitHub { | ||||||
owner = "dogecoin"; | ||||||
repo = "dogecoin"; | ||||||
rev = "v${version}"; | ||||||
sha256 = "sha256-Jmdxaona9bI9mw+WDGnrFU2ETgVTTQ7HHaWRodK/c4k="; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
}; | ||||||
|
||||||
preConfigure = lib.optionalString withGui '' | ||||||
export LRELEASE=${lib.getDev qttools}/bin/lrelease | ||||||
''; | ||||||
|
||||||
nativeBuildInputs = | ||||||
[ | ||||||
pkg-config | ||||||
autoreconfHook | ||||||
util-linux | ||||||
] | ||||||
++ lib.optionals withGui [ | ||||||
wrapQtAppsHook | ||||||
qttools | ||||||
]; | ||||||
|
||||||
buildInputs = | ||||||
[ | ||||||
openssl | ||||||
protobuf | ||||||
boost | ||||||
zlib | ||||||
libevent | ||||||
] | ||||||
++ lib.optionals withGui [ | ||||||
qtbase | ||||||
qrencode | ||||||
] | ||||||
++ lib.optionals withUpnp [ miniupnpc ] | ||||||
++ lib.optionals withWallet [ db5 ] | ||||||
++ lib.optionals withZmq [ zeromq ] | ||||||
++ lib.optionals stdenv.isDarwin [ Cocoa ]; | ||||||
|
||||||
configureFlags = | ||||||
[ | ||||||
"--with-incompatible-bdb" | ||||||
"--with-boost-libdir=${boost.out}/lib" | ||||||
] | ||||||
++ lib.optionals (!withGui) [ "--with-gui=no" ] | ||||||
++ lib.optionals (!withUpnp) [ "--without-miniupnpc" ] | ||||||
++ lib.optionals (!withUtils) [ "--without-utils" ] | ||||||
++ lib.optionals (!withWallet) [ "--disable-wallet" ] | ||||||
++ lib.optionals (!withZmq) [ "--disable-zmq" ]; | ||||||
|
||||||
enableParallelBuilding = true; | ||||||
|
||||||
meta = with lib; { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing |
||||||
description = "Wow, such coin, much shiba, very rich"; | ||||||
longDescription = '' | ||||||
Dogecoin is a decentralized, peer-to-peer digital currency that | ||||||
enables you to easily send money online. Think of it as "the | ||||||
internet currency." | ||||||
It is named after a famous Internet meme, the "Doge" - a Shiba Inu dog. | ||||||
''; | ||||||
homepage = "https://www.dogecoin.com/"; | ||||||
license = licenses.mit; | ||||||
maintainers = with maintainers; [ | ||||||
edwtjo | ||||||
offline | ||||||
cleverca22 | ||||||
craigem | ||||||
]; | ||||||
Comment on lines
+95
to
+100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it'd be best to remove the maintainers who did not explicitly agree, even if this is just a revert. |
||||||
platforms = platforms.unix; | ||||||
broken = withGui; | ||||||
}; | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qmake
is unused.