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:
Profpatsch 2020-08-04 21:18:26 +02:00
parent e207b5c2c6
commit 5b7632cbc4
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, release }:
{ simpleName, binName, attrName, completionName ? binName }:
{ simpleName, binName, attrName }:
let
release = import ./release.nix;
@ -25,6 +25,6 @@ pkgs.stdenv.mkDerivation rec {
install -D -m555 -T ${binName} "$binPath"
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"
'';
}

View File

@ -4,5 +4,4 @@ import ./build.nix { inherit pkgs; release = import ./release.nix; } {
simpleName = "dhall-yaml-simple";
binName = "dhall-to-yaml-ng";
attrName = "dhall-yaml";
completionName = "dhall-to-yaml";
}