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

oh-my-zsh: add share dir to pathsToLink #21957

Merged
merged 1 commit into from Jan 17, 2017
Merged

oh-my-zsh: add share dir to pathsToLink #21957

merged 1 commit into from Jan 17, 2017

Conversation

kjanosz
Copy link
Contributor

@kjanosz kjanosz commented Jan 17, 2017

Motivation for this change

Some window/desktop managers do not add share directory or do it selectively.
Without it oh-my-zsh is not linked to /run/current-system/sw/share, which then makes it harder to set $ZSH variable in .zshrc

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.

@mention-bot
Copy link

@kjanosz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @scolobb, @NeQuissimus and @grahamc to be potential reviewers.

@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "1adgj0p4c8aq9rpkv33k8ra69922vfkjw63b666i66v6zr0s8znp";
};

environment.pathsToLink = [ "/share/oh-my-zsh" ];
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this give us?

I haven't found anything looking like a doc for this attribute :-(

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, nice search engine, didn't know it existed, thanks a lot!

Your change seems reasonable to me.

@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "1adgj0p4c8aq9rpkv33k8ra69922vfkjw63b666i66v6zr0s8znp";
};

environment.pathsToLink = [ "/share/oh-my-zsh" ];
Copy link
Member

Choose a reason for hiding this comment

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

@NeQuissimus NeQuissimus merged commit 37530a4 into NixOS:master Jan 17, 2017
@kjanosz kjanosz deleted the oh-my-zsh-share-link branch January 17, 2017 22:45
@NeQuissimus
Copy link
Member

Note that I removed the environment. in my above PR. It was causing issues.

@kjanosz
Copy link
Contributor Author

kjanosz commented Jan 17, 2017

My apologies then - I have this line in private module config and didn't actually fully check that in package environment. should be stripped :-(

@NeQuissimus
Copy link
Member

No worries, that's why I went to build it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants