Skip to content
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

zsh-autosuggestions: init at 0.3.3 #21792

Merged
merged 1 commit into from Jan 11, 2017

Conversation

yacinehmito
Copy link
Contributor

@yacinehmito yacinehmito commented Jan 10, 2017

Motivation for this change

PR #19179 added zsh-syntax-highlighting. I needed zsh-autosuggestions, which is a plugin often paired with it as they both provide a fish-like experience.

Things done

Added the zsh-autosuggestions package.
Added also a related programs.zsh.enableAutosuggestions option, as advised in #19179

@loskutov, I left you as a maintainer given your work on packaging zsh-syntax-highlighting.
Let me know if it's ok for you or if you want me to change that.

  • 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.

@mention-bot
Copy link

@gpyh, thanks for your PR! By analyzing the history of the files in this pull request, we identified @oxij, @spwhitt and @loskutov to be potential reviewers.

@yacinehmito yacinehmito force-pushed the zsh-autosuggestions branch 2 times, most recently from a546237 to 7ff69a2 Compare January 10, 2017 23:32

installPhase = ''
install -d $out/share/zsh-autosuggestions
install zsh-autosuggestions.zsh \
Copy link
Member

Choose a reason for hiding this comment

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

you can skip the first install by adding -D to the second one.


buildInputs = [ zsh ];

buildPhase = "";
Copy link
Member

Choose a reason for hiding this comment

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

buildPhases = [ "unpackPhase" "installPhase" ]; instead of empty buildPhase.

stdenv.mkDerivation rec {
name = "${pkgName}-${version}";

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.

fetchFromGitHub can be used here.

@yacinehmito
Copy link
Contributor Author

Thanks @Mic92 for the suggestions of improvement. The commit has been changed accordingly.

Weirdly enough, the hash didn't stay the same when I switched to fetchFromGitHub.

Added a related `programs.zsh.enableAutosuggestions` option
@fpletz
Copy link
Member

fpletz commented Jan 11, 2017

Weirdly enough, the hash didn't stay the same when I switched to fetchFromGitHub.

That's to be expected because fetchFromGitHub normalizes the timestamps in the archive in case Github chooses to rebuild the tarball.

@fpletz fpletz changed the title zsh-autosuggestions: Init at 0.3.3 zsh-autosuggestions: init at 0.3.3 Jan 11, 2017
@fpletz fpletz merged commit f88e2fb into NixOS:master Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants