Skip to content

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

Merged
merged 2 commits into from
May 6, 2017
Merged

Electrum-LTC: init at 2.6.4.2 #25544

merged 2 commits into from
May 6, 2017

Conversation

asymmetric
Copy link
Contributor

Motivation for this change

Adds Electrum-LTC, a Litecoin lightweight wallet.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

library needed by the electrum-ltc lightweight litecoin wallet
@mention-bot
Copy link

@asymmetric, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

Copy link
Member

@FRidh FRidh left a 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;
Copy link
Member

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
@asymmetric
Copy link
Contributor Author

@FRidh PTALA.

name = "electrum-ltc-${version}";
version = "2.6.4.2";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchPypi

Copy link
Contributor Author

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 = ''
Copy link
Member

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.

Copy link
Contributor Author

@asymmetric asymmetric May 6, 2017

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!

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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.

@FRidh FRidh added 6.topic: python 8.has: package (new) This PR adds a new package labels May 6, 2017
@FRidh FRidh merged commit 30a33a5 into NixOS:master May 6, 2017
@asymmetric asymmetric deleted the electrum-ltc branch May 6, 2017 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants