mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 20:19:08 +00:00
15 lines
233 B
Nix
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
|
|
''
|