Loading pkgs/by-name/yq/yq-go/package.nix +14 −11 Original line number Diff line number Diff line Loading @@ -5,21 +5,21 @@ fetchFromGitHub, installShellFiles, runCommand, yq-go, nix-update-script, }: buildGoModule (finalAttrs: { pname = "yq-go"; version = "4.45.4"; version = "4.46.1"; src = fetchFromGitHub { owner = "mikefarah"; repo = "yq"; rev = "v${finalAttrs.version}"; hash = "sha256-qcsm7dB7F7Snul2PbH/7RdK17c5qT+mk+FvfqnFfuak="; tag = "v${finalAttrs.version}"; hash = "sha256-lMmcqAe1A/ET/2Dju6Gj0+I/g4z23EmtuRio0NYTHws="; }; vendorHash = "sha256-cA5Y0/2lvYfVXr4zgtp/U8aBUkHnh9xb9jDHVk/2OME="; vendorHash = "sha256-wfn8u8I4dyAD4PbeiQGSai1gQ2ZDFBi2mysZVKa0mkA="; nativeBuildInputs = [ installShellFiles ]; Loading @@ -30,17 +30,20 @@ buildGoModule (finalAttrs: { --zsh <($out/bin/yq shell-completion zsh) ''; passthru.tests = { simple = runCommand "${finalAttrs.pname}-test" { } '' echo "test: 1" | ${yq-go}/bin/yq eval -j > $out passthru = { tests = { simple = runCommand "yq-go-test" { } '' echo "test: 1" | ${finalAttrs.finalPackage}/bin/yq eval -j > $out [ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ] ''; }; updateScript = nix-update-script { }; }; meta = { description = "Portable command-line YAML processor"; homepage = "https://mikefarah.gitbook.io/yq/"; changelog = "https://github.com/mikefarah/yq/raw/v${finalAttrs.version}/release_notes.txt"; changelog = "https://github.com/mikefarah/yq/raw/${finalAttrs.src.tag}/release_notes.txt"; mainProgram = "yq"; license = [ lib.licenses.mit ]; maintainers = with lib.maintainers; [ Loading Loading
pkgs/by-name/yq/yq-go/package.nix +14 −11 Original line number Diff line number Diff line Loading @@ -5,21 +5,21 @@ fetchFromGitHub, installShellFiles, runCommand, yq-go, nix-update-script, }: buildGoModule (finalAttrs: { pname = "yq-go"; version = "4.45.4"; version = "4.46.1"; src = fetchFromGitHub { owner = "mikefarah"; repo = "yq"; rev = "v${finalAttrs.version}"; hash = "sha256-qcsm7dB7F7Snul2PbH/7RdK17c5qT+mk+FvfqnFfuak="; tag = "v${finalAttrs.version}"; hash = "sha256-lMmcqAe1A/ET/2Dju6Gj0+I/g4z23EmtuRio0NYTHws="; }; vendorHash = "sha256-cA5Y0/2lvYfVXr4zgtp/U8aBUkHnh9xb9jDHVk/2OME="; vendorHash = "sha256-wfn8u8I4dyAD4PbeiQGSai1gQ2ZDFBi2mysZVKa0mkA="; nativeBuildInputs = [ installShellFiles ]; Loading @@ -30,17 +30,20 @@ buildGoModule (finalAttrs: { --zsh <($out/bin/yq shell-completion zsh) ''; passthru.tests = { simple = runCommand "${finalAttrs.pname}-test" { } '' echo "test: 1" | ${yq-go}/bin/yq eval -j > $out passthru = { tests = { simple = runCommand "yq-go-test" { } '' echo "test: 1" | ${finalAttrs.finalPackage}/bin/yq eval -j > $out [ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ] ''; }; updateScript = nix-update-script { }; }; meta = { description = "Portable command-line YAML processor"; homepage = "https://mikefarah.gitbook.io/yq/"; changelog = "https://github.com/mikefarah/yq/raw/v${finalAttrs.version}/release_notes.txt"; changelog = "https://github.com/mikefarah/yq/raw/${finalAttrs.src.tag}/release_notes.txt"; mainProgram = "yq"; license = [ lib.licenses.mit ]; maintainers = with lib.maintainers; [ Loading