mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
Merge pull request #107282 from 0x4A6F/master-dasel
dasel: add installCheckPhase test
This commit is contained in:
commit
4b210ca92a
@ -20,6 +20,17 @@ buildGoModule rec {
|
|||||||
-ldflags=-s -w -X github.com/tomwright/dasel/internal.Version=${version}
|
-ldflags=-s -w -X github.com/tomwright/dasel/internal.Version=${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
if [[ "$("$out/bin/${pname}" --version)" == "${pname} version ${version}" ]]; then
|
||||||
|
echo "" | $out/bin/dasel put object -p yaml -t string -t int "my.favourites" colour=red number=3 | grep -q red
|
||||||
|
echo '${pname} smoke check passed'
|
||||||
|
else
|
||||||
|
echo '${pname} smoke check failed'
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Query and update data structures from the command line";
|
description = "Query and update data structures from the command line";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user