mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-10 04:21:33 +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
|
||
|
''
|