tomlq: 0.1.6 → 0.2.2 (#390198)
This commit is contained in:
@@ -195,6 +195,8 @@
|
|||||||
|
|
||||||
- `rofi-emoji-wayland` has been merged into `rofi-emoji` as `rofi` has been updated to `2.0.0` and supports both X11 & Wayland.
|
- `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.
|
- `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 backwards‐incompatible changes; see the NEWS for details.
|
This introduces some backwards‐incompatible 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.
|
NEWS can be viewed from Emacs by typing `C-h n`, or by clicking `Help->Emacs News` from the menu bar.
|
||||||
|
|||||||
@@ -2,25 +2,33 @@
|
|||||||
lib,
|
lib,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
versionCheckHook,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "tomlq";
|
pname = "tomlq";
|
||||||
version = "0.1.6";
|
version = "0.2.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cryptaliagy";
|
owner = "cryptaliagy";
|
||||||
repo = "tomlq";
|
repo = "tomlq";
|
||||||
tag = version;
|
tag = finalAttrs.version;
|
||||||
hash = "sha256-g8xjz8qCTiulTwcEbLTHYldw4PI+4ZfCOMJs+J6L1C4=";
|
hash = "sha256-obOR9q+fE5BnqZIsoL4zauKB+djEn1epqGwSjrI7QqU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-/n1+8n0zGs9qS5QQcAfXJ1kmRkcfsCTxQonEaFsNdHo=";
|
cargoHash = "sha256-RkzAYVMycQwcewuP8wDbL06YddapyFhm+57CGOICey0=";
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Tool for getting data from TOML files on the command line";
|
description = "Tool for getting data from TOML files on the command line";
|
||||||
homepage = "https://github.com/cryptaliagy/tomlq";
|
homepage = "https://github.com/cryptaliagy/tomlq";
|
||||||
|
changelog = "https://github.com/cryptaliagy/tomlq/releases/tag/${finalAttrs.version}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ kinzoku ];
|
maintainers = with lib.maintainers; [ kinzoku ];
|
||||||
mainProgram = "tq";
|
mainProgram = "tq";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
expected_version="$version"
|
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
|
if [ "$actual_version" != "$expected_version" ]; then
|
||||||
echo -e "\n\tERROR:"
|
echo -e "\n\tERROR:"
|
||||||
|
|||||||
Reference in New Issue
Block a user