gomod2nix/tests/mkgoenv/default.nix
2022-06-13 20:37:42 +08:00

15 lines
233 B
Nix

{ 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
''