lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 46 lines 1.4 kB view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "dasel"; 8 version = "1.22.1"; 9 10 src = fetchFromGitHub { 11 owner = "TomWright"; 12 repo = "dasel"; 13 rev = "v${version}"; 14 sha256 = "091s3hyz9p892garanm9zmkbsn6hn3bnnrz7h3dqsyi58806d5yr"; 15 }; 16 17 vendorSha256 = "1psyx8nqzpx3p1ya9y3q9h0hhfx4iqmix089b2h6bp9lgqbj5zn8"; 18 19 ldflags = [ 20 "-s" "-w" "-X github.com/tomwright/dasel/internal.Version=${version}" 21 ]; 22 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 34 meta = with lib; { 35 description = "Query and update data structures from the command line"; 36 longDescription = '' 37 Dasel (short for data-selector) allows you to query and modify data structures using selector strings. 38 Comparable to jq / yq, but supports JSON, YAML, TOML and XML with zero runtime dependencies. 39 ''; 40 homepage = "https://github.com/TomWright/dasel"; 41 changelog = "https://github.com/TomWright/dasel/blob/v${version}/CHANGELOG.md"; 42 license = licenses.mit; 43 platforms = platforms.unix; 44 maintainers = with maintainers; [ _0x4A6F ]; 45 }; 46}