From ee9e485baa2ea71daa982575f497c5681a02afa7 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 14 Jan 2025 17:14:36 +0100 Subject: [PATCH] jaq: 2.0.1 -> 2.1.0 Diff: https://github.com/01mf02/jaq/compare/refs/tags/v2.0.1...v2.1.0 Changelog: https://github.com/01mf02/jaq/releases/tag/v2.1.0 --- pkgs/by-name/ja/jaq/package.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/ja/jaq/package.nix b/pkgs/by-name/ja/jaq/package.nix index f64e9855bd9f..395d20d30792 100644 --- a/pkgs/by-name/ja/jaq/package.nix +++ b/pkgs/by-name/ja/jaq/package.nix @@ -1,6 +1,5 @@ { lib, - stdenv, rustPlatform, fetchFromGitHub, versionCheckHook, @@ -9,23 +8,16 @@ rustPlatform.buildRustPackage rec { pname = "jaq"; - version = "2.0.1"; + version = "2.1.0"; src = fetchFromGitHub { owner = "01mf02"; repo = "jaq"; tag = "v${version}"; - hash = "sha256-S8ELxUKU8g8+6HpM+DxINEqMDha7SgesDymhCb7T9bg="; + hash = "sha256-J+48TWGio6KplqYFJM25LGIuf+yAyE7NMqgPUPgpTeY="; }; - cargoHash = "sha256-i3AxIlRY6r0zrMmZVh1l9fPiR652xjhTcwCyHCHCrL8="; - - # This very line fails on `x86_64-darwin`: assertion failed: out.eq(ys) - # https://github.com/01mf02/jaq/blob/v2.0.1/jaq-json/tests/funs.rs#L118 - postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' - substituteInPlace jaq-json/tests/funs.rs \ - --replace-fail 'give(json!(null), "2.1 % 0 | isnan", json!(true));' "" - ''; + cargoHash = "sha256-9N24D4fKsy/n+f5uTNkbQNgW+BgGkdEvgitvqbnOcGs="; nativeInstallCheckInputs = [ versionCheckHook