mirror of
https://github.com/justinwoo/easy-dhall-nix.git
synced 2024-11-26 21:19:42 +01:00
fix(dhall-to-yaml-ng): fix completion
The completion was pointing to an executable that did not exist in that output, the suffix `-ng` was missing.
This commit is contained in:
parent
e207b5c2c6
commit
5b7632cbc4
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, release }:
|
{ pkgs, release }:
|
||||||
|
|
||||||
{ simpleName, binName, attrName, completionName ? binName }:
|
{ simpleName, binName, attrName }:
|
||||||
|
|
||||||
let
|
let
|
||||||
release = import ./release.nix;
|
release = import ./release.nix;
|
||||||
|
@ -25,6 +25,6 @@ pkgs.stdenv.mkDerivation rec {
|
||||||
install -D -m555 -T ${binName} "$binPath"
|
install -D -m555 -T ${binName} "$binPath"
|
||||||
|
|
||||||
mkdir -p $out/etc/bash_completion.d/
|
mkdir -p $out/etc/bash_completion.d/
|
||||||
"$binPath" --bash-completion-script "$binPath" > "$out/etc/bash_completion.d/${completionName}-completion.bash"
|
"$binPath" --bash-completion-script "$binPath" > "$out/etc/bash_completion.d/${binName}-completion.bash"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,4 @@ import ./build.nix { inherit pkgs; release = import ./release.nix; } {
|
||||||
simpleName = "dhall-yaml-simple";
|
simpleName = "dhall-yaml-simple";
|
||||||
binName = "dhall-to-yaml-ng";
|
binName = "dhall-to-yaml-ng";
|
||||||
attrName = "dhall-yaml";
|
attrName = "dhall-yaml";
|
||||||
completionName = "dhall-to-yaml";
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue