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
zplugin:init at 2.3 #73764
zplugin:init at 2.3 #73764
Conversation
@GrahamcOfBorg eval |
pkgs/shells/zsh/zplugin/default.nix
Outdated
#TODO:doc output | ||
|
||
meta = with lib; { | ||
license = licenses.mit; |
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.
license is listed twice
license = licenses.mit; |
What is the exact procedure for proposing as mantainer? |
it's pretty relaxed in nixpkgs, the main qualification is just general interest in the package. Most of the time, maintainers know how to use the software so they can verify that updates to it don't break any workflows. |
@pasqui23 do you plan to push this forward? Otherwise I might try to pick it up. |
So apparently it builds with the latest code |
@little-dude yes,I still want to push it |
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.
you could also use install -DmXXX [sources] -t dest
to greatly simplify a lot of this installation logic (it will create parent directories for you)
{ stdenvNoCC, lib, fetchFromGitHub }: | ||
stdenvNoCC.mkDerivation rec { | ||
pname = "zplugin"; | ||
version = "2.3"; |
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.
version = "2.3"; | |
version = "2.3"; | |
pkgs/shells/zsh/zplugin/default.nix
Outdated
@@ -0,0 +1,40 @@ | |||
{ stdenvNoCC, lib, fetchFromGitHub }: |
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.
{ stdenvNoCC, lib, fetchFromGitHub }: | |
{ stdenvNoCC, lib, fetchFromGitHub }: | |
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.
sorry, forgot to add that installShellCompletion is another "package", so it needs to be added to avoid:
/nix/store/plcn9z5lzjd9lhij1cj73k2nwxkng4rq-stdenv-linux/setup: line 1309: installShellCompletion: command not found
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "0qqv5p19s8jb06d6h55dm4acji9x2rpxb2ni3h7fb0q43iz6y85w"; | ||
}; |
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.
}; | |
}; | |
nativeBuildInputs = [ installShellCompletion ]; |
pkgs/shells/zsh/zplugin/default.nix
Outdated
@@ -0,0 +1,39 @@ | |||
{ stdenvNoCC, lib, fetchFromGitHub }: |
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.
{ stdenvNoCC, lib, fetchFromGitHub }: | |
{ stdenvNoCC, lib, fetchFromGitHub, installShellCompletion }: |
don't forget to squash the commits, to squash the last 6 commits into the first you can do:
for other incremental changes into the last commit, you can just do:
|
f5c42a7
to
04bf131
Compare
pkgs/shells/zsh/zplugin/default.nix
Outdated
|
||
# Zplugin-module files | ||
find zmodules/ -type d -exec install -dm 755 "{}" "$outdir/{}" \; | ||
find zmodules/ -type f -exec install -m 744 "{}" "$outdir/{}" \; |
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.
should this preserve the same file structure?
find zmodules/ -type f -exec install -m 744 "{}" "$outdir/{}" \; | |
find zmodules/ -type f -exec install -m 744 "{}" "$outdir/zmodules/{}" \; |
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.
Honestly now that I look it better,it seem it would be better if packaged separately
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
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.
Triage: lgtm but wondering about the native inputs @jonringer mentioned, should they be merged with the one on line 13?
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.
please resolve conflicts as well :)
pasqui23 = { | ||
email = "p3dimaria@hotmail.it"; | ||
github = "pasqui23"; | ||
githubId = 6931743; | ||
}; |
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.
Please add your name.
Please make this into a separate commit:
maintainers: add <name>
Closing in favor of #90322 @jonringer |
Motivation for this change
Things done
Building fails with
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @