Skip to content

Commit

Permalink
Backport nixpkgs merged changes for integration of cargo-make complet…
Browse files Browse the repository at this point in the history
…ions (#859)

Apply NixOS/nixpkgs#349104

Update GH-771
  • Loading branch information
kachick authored Oct 20, 2024
1 parent e108001 commit 8c9e9d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 35 deletions.
5 changes: 4 additions & 1 deletion home-manager/bash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
lib,
pkgs,
homemade-pkgs,
edge-pkgs,
...
}:

Expand Down Expand Up @@ -122,7 +123,9 @@
source "${pkgs.fzf-git-sh}/share/fzf-git-sh/fzf-git.sh"
source "${pkgs.podman}/share/bash-completion/completions/podman"
source "${pkgs.zellij}/share/bash-completion/completions/zellij.bash"
source "${homemade-pkgs.cargo-make-completions}/share/bash-completion/completions/makers-completion.bash"
# Adding only in devshell is not enough
source "${edge-pkgs.cargo-make}/share/bash-completion/completions/makers-completion.bash"
source "${../dependencies/dprint/completions.bash}"
Expand Down
3 changes: 2 additions & 1 deletion home-manager/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
lib,
pkgs,
homemade-pkgs,
edge-pkgs,
...
}:

Expand Down Expand Up @@ -231,7 +232,7 @@ in
source "${pkgs.fzf-git-sh}/share/fzf-git-sh/fzf-git.sh"
source "${pkgs.podman}/share/zsh/site-functions/_podman"
# cargo-make recommends to use bash completions for zsh
source "${homemade-pkgs.cargo-make-completions}/share/bash-completion/completions/makers-completion.bash"
source "${edge-pkgs.cargo-make}/share/bash-completion/completions/makers-completion.bash"
# fzf completions are also possible to be used in bash, but it overrides default completions with the registering
# So currently injecting only in zsh
Expand Down
31 changes: 0 additions & 31 deletions pkgs/cargo-make-completions/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
micro-kdl = pkgs.callPackage ./micro-kdl { };
micro-nordcolors = pkgs.callPackage ./micro-nordcolors { };

cargo-make-completions = pkgs.callPackage ./cargo-make-completions { };

kdl-vim = pkgs.callPackage ./kdl.vim { };

nix-hash-url = pkgs.callPackage ./nix-hash-url { };
Expand Down

0 comments on commit 8c9e9d8

Please sign in to comment.