@@ -20,6 +20,17 @@ buildGoModule rec {
2020 -ldflags=-s -w -X github.com/tomwright/dasel/internal.Version=${version}
2121 '';
2222
23+ doInstallCheck = true;
24+ installCheckPhase = ''
25+ if [[ "$("$out/bin/${pname}" --version)" == "${pname} version ${version}" ]]; then
26+ echo "" | $out/bin/dasel put object -p yaml -t string -t int "my.favourites" colour=red number=3 | grep -q red
27+ echo '${pname} smoke check passed'
28+ else
29+ echo '${pname} smoke check failed'
30+ return 1
31+ fi
32+ '';
33+
2334 meta = with stdenv.lib; {
2435 description = "Query and update data structures from the command line";
2536 longDescription = ''