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