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
ledger-live-desktop: init at 1.12.0 #62753
ledger-live-desktop: init at 1.12.0 #62753
Conversation
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Ledger Live (Desktop)"; |
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 description shouldn't really be the name of the package. I found "The companion to your Ledger hardware wallet" on their website but that's more of a slogan so there is almost certainly something better.
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.
@alexarice this is the description pasted from their github repo
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.
meta.description should:
Be capitalized.
Not start with the package name.
Not have a period at the end.
This is what contributing.md says and it doesn't seem like a helpful description, even if it is the description on their github
buildInputs = [ appimage-run ]; | ||
|
||
unpackPhase = ":"; | ||
preInstall = ":"; |
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.
@alexarice like this?
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.
like
runHook preInstall |
You will need to squash the commits into one adding yourself as a maintainer and one adding the package at some point |
908bce7
to
4cf3187
Compare
@alexarice squashed, we good? |
I have already approved and cannot do anything else |
Update pkgs/applications/altcoins/ledger-live-desktop/default.nix Co-Authored-By: Benjamin Hipple <bhipple@protonmail.com> add preInstall and postInstall for ledger-live-desktop updated longDescription for ledger-live-desktop resolving feedback
4cf3187
to
659e3f7
Compare
@GrahamcOfBorg build ledger-live-desktop |
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 going to push a commit that addresses this review, please check and tell if you're comfortable with it. Note that it also adds an XDG desktop item.
description = '' | ||
The companion to your Ledger hardware wallet | ||
Easily set up and manage your Ledger device | ||
''; |
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.
description
should probably fit a single line. This is what https://nixos.org/nixos/packages.html will end up rendering.
The companion to your Ledger hardware wallet | ||
Easily set up and manage your Ledger device | ||
''; | ||
homepage = https://www.ledger.com/live; |
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.
See: NixOS/rfcs#45
cp $src $out/share/${pname} | ||
echo "#!${runtimeShell}" > $out/bin/${pname} | ||
echo "${appimage-run}/bin/appimage-run $out/share/${pname}" >> $out/bin/${pname} | ||
chmod +x $out/bin/${pname} $out/share/${pname} |
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.
This is something makeWrapper
is a good fit for, as an example:
nixpkgs/pkgs/applications/science/logic/tlaplus/default.nix
Lines 23 to 24 in 92a047a
makeWrapper ${jre}/bin/java $out/bin/tlc2 \ | |
--add-flags "-cp $out/share/java/tla2tools.jar tlc2.TLC" |
}: | ||
|
||
stdenv.mkDerivation rec { | ||
github-user = "LedgerHQ"; |
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.
Variables should use camelCase
(unlike package names, which use hyphens), see Nixpkgs manual: https://nixos.org/nixpkgs/manual/#sec-syntax
Also, it would make more sense to have it inlined into url
, given this is not something that other Nixpkgs packages do.
FTR, if you are interested into something more convenient than fetchurl
for fetching GitHub releases, it might make sense to have something like fetchGitHubRelease
with options similar to those found in fetchFromGitHub
.
@GrahamcOfBorg build ledger-live-desktop |
@yegortimoshenko i'm happy with your changes, let's merge :) |
Motivation for this change
Adds ledger live desktop, the app that manages ledger S/X/blue
https://www.ledger.com/
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)