tomlq: 0.1.6 -> 0.2.2

This commit is contained in:
Mikael Voss
2025-03-15 19:27:17 +01:00
parent 7ba106c912
commit cecd3dbea2
3 changed files with 17 additions and 7 deletions
+2
View File
@@ -191,6 +191,8 @@
- `rofi-emoji-wayland` has been merged into `rofi-emoji` as `rofi` has been updated to `2.0.0` and supports both X11 & Wayland.
- The main binary of `tomlq` has been renamed from `tomlq` to `tq`.
- `emacs-macport` has been moved to a fork of Mitsuharu Yamamoto's patched source code starting with Emacs v30 as the original project seems to be currently dormant. All older versions of this package have been dropped.
This introduces some backwardsincompatible changes; see the NEWS for details.
NEWS can be viewed from Emacs by typing `C-h n`, or by clicking `Help->Emacs News` from the menu bar.
+14 -6
View File
@@ -2,25 +2,33 @@
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tomlq";
version = "0.1.6";
version = "0.2.2";
src = fetchFromGitHub {
owner = "cryptaliagy";
repo = "tomlq";
tag = version;
hash = "sha256-g8xjz8qCTiulTwcEbLTHYldw4PI+4ZfCOMJs+J6L1C4=";
tag = finalAttrs.version;
hash = "sha256-obOR9q+fE5BnqZIsoL4zauKB+djEn1epqGwSjrI7QqU=";
};
cargoHash = "sha256-/n1+8n0zGs9qS5QQcAfXJ1kmRkcfsCTxQonEaFsNdHo=";
cargoHash = "sha256-RkzAYVMycQwcewuP8wDbL06YddapyFhm+57CGOICey0=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Tool for getting data from TOML files on the command line";
homepage = "https://github.com/cryptaliagy/tomlq";
changelog = "https://github.com/cryptaliagy/tomlq/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kinzoku ];
mainProgram = "tq";
};
}
})
@@ -26,7 +26,7 @@ buildPythonPackage rec {
postPatch = ''
expected_version="$version"
actual_version=$(${lib.getExe tomlq} --file pyproject.toml "project.version")
actual_version=$(${lib.getExe tomlq} --raw --file pyproject.toml "project.version")
if [ "$actual_version" != "$expected_version" ]; then
echo -e "\n\tERROR:"