Skip to content

Commit

Permalink
shell.nix: Better way to add bash completions to shell
Browse files Browse the repository at this point in the history
We can use nativeBuildInputs now, since
NixOS/nixpkgs#103501
  • Loading branch information
rvl committed Jul 19, 2021
1 parent beb1f71 commit b2375e8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let
mkShell = name: project: project.shellFor rec {
inherit name;
packages = ps: lib.attrValues (selectProjectPackages ps);
buildInputs = (with walletPackages; [
nativeBuildInputs = (with walletPackages; [
cardano-node
cardano-cli
cardano-address
Expand Down Expand Up @@ -59,15 +59,6 @@ let

CARDANO_NODE_CONFIGS = pkgs.cardano-node-deployments;

# If any build input has bash completions, add it to the search
# path for shell completions.
XDG_DATA_DIRS = lib.concatStringsSep ":" (
[(builtins.getEnv "XDG_DATA_DIRS")] ++
(lib.filter
(share: builtins.pathExists (share + "/bash-completion"))
(map (p: p + "/share") buildInputs))
);

meta.platforms = lib.platforms.unix;
};
in
Expand Down

0 comments on commit b2375e8

Please sign in to comment.