gomod2nix/tests/mkgoenv/default.nix

16 lines
233 B
Nix
Raw Normal View History

2022-06-13 12:06:45 +00:00
{ runCommand, mkGoEnv }:
let
env = mkGoEnv {
pwd = ./.;
};
in
runCommand "mkgoenv-assert" { } ''
if ! test -f ${env}/bin/stringer; then
echo "stringer command not found in env!"
exit 1
fi
ln -s ${env} $out
''