-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
longhornctl: init at 1.7.2 #357935
base: master
Are you sure you want to change the base?
longhornctl: init at 1.7.2 #357935
Conversation
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.
Welcome to Nixpkgs! Here's some suggested changes:
github = "OhMyMndy"; | ||
githubId = 227771; | ||
name = "Mandy Schoep"; | ||
}; |
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 should be in a separate commit titled maintainers: add ohmymndy
, before the main commit
{ lib | ||
, buildGoModule | ||
, fetchFromGitHub | ||
, nixosTests | ||
, | ||
}: |
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.
We don't format lists like this anymore; please reformat with nixfmt-rfc-style
src = fetchFromGitHub { | ||
owner = "longhorn"; | ||
repo = "cli"; | ||
rev = "v${version}"; |
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.
Prefixing tags with refs/tags/
is recommended as sometimes it might clash with branch names
rev = "v${version}"; | |
rev = "refs/tags/v${version}"; |
passthru.tests = { inherit (nixosTests) longhornctl; }; | ||
|
||
meta = { | ||
description = "a CLI (command-line interface) designed to simplify Longhorn manual operations."; |
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 naming conventions at pkgs/README.md
description = "a CLI (command-line interface) designed to simplify Longhorn manual operations."; | |
description = "CLI designed to simplify Longhorn manual operations"; |
ln -s $out/bin/remote $out/bin/longhornctl | ||
''; | ||
|
||
passthru.tests = { inherit (nixosTests) longhornctl; }; |
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 don't see a NixOS test added in this PR — did you intend to add one?
|
||
meta = { | ||
description = "a CLI (command-line interface) designed to simplify Longhorn manual operations."; | ||
downloadPage = "https://github.com/longhorn/cli"; |
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 manual says that downloadPage
should point to the source to the current version, not just the repository — though I consider this attribute to be somewhat unimportant since it's not specified in the vast majority of packages
]; | ||
|
||
postInstall = '' | ||
ln -s $out/bin/remote $out/bin/longhornctl |
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.
Maybe move instead of link?
Adding package for
longhornctl
https://github.com/longhorn/cli
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.