cod: fix tests
Co-authored-by: @jnetod @thiagokokada
This commit is contained in:
parent
4da89993ed
commit
64f3350532
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchFromGitHub, buildGoModule }:
|
{ lib, fetchFromGitHub, buildGoModule, python3 }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "cod";
|
pname = "cod";
|
||||||
|
@ -15,7 +15,16 @@ buildGoModule rec {
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" "-X main.GitSha=${src.rev}" ];
|
ldflags = [ "-s" "-w" "-X main.GitSha=${src.rev}" ];
|
||||||
|
|
||||||
doCheck = false;
|
checkInputs = [ python3 ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
pushd test/binaries/
|
||||||
|
for f in *.py; do
|
||||||
|
patchShebangs ''$f
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
export COD_TEST_BINARY="''${NIX_BUILD_TOP}/go/bin/cod"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool for generating Bash/Fish/Zsh autocompletions based on `--help` output";
|
description = "Tool for generating Bash/Fish/Zsh autocompletions based on `--help` output";
|
||||||
|
|
Loading…
Reference in a new issue