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

fzf: add script for finding 'share' folder #27709

Merged
merged 1 commit into from Jul 30, 2017
Merged

Conversation

binarin
Copy link
Contributor

@binarin binarin commented Jul 28, 2017

Motivation for this change

So that helper scripts can be easily sourced in interactive shell
configuration. autojump package was already present and had the same
requirements for findind a share folders, so I took an inspiration
there.

I beleive this is a better alternative to:

Replacing $out/share/shell with $bin/share/fzf was necessary to
prevent dependency loop in produced derivations.

Things done

Please check what applies. Note that these are not hard requirements but mereley serve as information for reviewers.

  • 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 via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

So that helper scripts can be easily sourced in interactive shell
configuration. `autojump` package was already present and had the same
requirements for findind a `share` folders, so I took an inspiration
there.

I beleive this is a better alternative to:
- NixOS#25080
- NixOS#27058

Replacing `$out/share/shell` with `$bin/share/fzf` was necessary to
prevent dependency loop in produced derivations.
@Mic92 Mic92 merged commit 25bb529 into NixOS:master Jul 30, 2017
@Mic92
Copy link
Member

Mic92 commented Jul 30, 2017

also documented here: https://github.com/nixos-users/wiki/wiki/fzf

@infinisil infinisil mentioned this pull request Dec 30, 2018
10 tasks
marsam added a commit to SebTM/nixpkgs that referenced this pull request Apr 7, 2024
The fzf-share helper was added to help to find the shell scripts [1],
but since fzf≥0.48.0 the it's no longer needed because fzf has its shell
integration scripts embedded.

[1] NixOS#27709
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

2 participants