gomod2nix/tests/cli-args/default.nix

18 lines
321 B
Nix
Raw Normal View History

{ runCommand, buildGoApplication }:
let
drv = buildGoApplication {
pname = "stringer";
pwd = ./.;
};
in
assert drv.version == "0.1.11";
runCommand "cli-args-stringer-assert" { } ''
if ! test -f ${drv}/bin/stringer; then
echo "stringer command not found in env!"
exit 1
fi
ln -s ${drv} $out
''