-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Electrum-LTC: init at 2.6.4.2 #25544
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
Conversation
library needed by the electrum-ltc lightweight litecoin wallet
@asymmetric, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer. |
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.
- commit per package
sed -i '/Created: .*/d' gui/qt/icons_rc.py | ||
''; | ||
|
||
doInstallCheck = true; |
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.
buildPythonApplication
runs the installCheckPhase
by default, but we just call it installCheckPhase
. So here you can skip the doInstallCheck
line and write checkPhase
instead of installCheckPhase
.
lightweight litecoin wallet
@FRidh PTALA. |
name = "electrum-ltc-${version}"; | ||
version = "2.6.4.2"; | ||
|
||
src = fetchurl { |
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.
fetchPypi
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.
It's not on PyPi though.
sed -i '/Created: .*/d' gui/qt/icons_rc.py | ||
''; | ||
|
||
checkPhase = '' |
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.
While not a requirement it is probably nicer to make this a postPatch
so that when one passes in patches
they will actually be applied.
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.
I'm not sure I understand. Do you mean change preBuild
into postPatch
?
Could you clarify the reasoning here? What's the connection between build and check phases?
Thanks!
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.
The default checkPhase
checks for patches
and applies those. Now, you override the checkPhase
so it won't apply anymore patches
when you pass them in. Therefore, I suggest checkPhase
-> postPatch
.
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.
Is there some documentation on this logic? I don't understand why the checkPhase
needs to deal with patches. Shouldn't those be handled in the patch
phase?
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.
Oops. Of course, you're right. I must be really sleep today.
Motivation for this change
Adds Electrum-LTC, a Litecoin lightweight wallet.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)