From b2ffd3b7b3ce032c1eafb355546e00164af8b99f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 17 Mar 2025 09:15:48 +0100 Subject: [PATCH] zellij: 0.41.2 -> 0.42.0 Diff: https://github.com/zellij-org/zellij/compare/refs/tags/v0.41.2...v0.42.0 Changelog: https://github.com/zellij-org/zellij/blob/v0.42.0/CHANGELOG.md --- pkgs/by-name/ze/zellij/package.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/ze/zellij/package.nix b/pkgs/by-name/ze/zellij/package.nix index 1f3f447ab691..3ba274737a82 100644 --- a/pkgs/by-name/ze/zellij/package.nix +++ b/pkgs/by-name/ze/zellij/package.nix @@ -8,19 +8,20 @@ pkg-config, curl, openssl, + writableTmpDirAsHomeHook, versionCheckHook, nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "zellij"; - version = "0.41.2"; + version = "0.42.0"; src = fetchFromGitHub { owner = "zellij-org"; repo = "zellij"; - tag = "v${version}"; - hash = "sha256-xdWfaXWmqFJuquE7n3moUjGuFqKB90OE6lqPuC3onOg="; + tag = "v${finalAttrs.version}"; + hash = "sha256-qvm8mRm/YYcuNX2Rv0tYjcIXjaF9dkwd7wpL++ho3t0="; }; # Remove the `vendored_curl` feature in order to link against the libcurl from nixpkgs instead of @@ -31,7 +32,7 @@ rustPlatform.buildRustPackage rec { ''; useFetchCargoVendor = true; - cargoHash = "sha256-nfk+4vf9toPwWcAgNtK9uy263g+j/Km1v8SJexlHhNg="; + cargoHash = "sha256-cAO8A/e6tkUY7pm/T4Riz4UPIc22oj5FFC6sQL1QIuc="; env.OPENSSL_NO_VENDOR = 1; @@ -47,9 +48,9 @@ rustPlatform.buildRustPackage rec { openssl ]; - preCheck = '' - HOME=$(mktemp -d) - ''; + nativeCheckInputs = [ + writableTmpDirAsHomeHook + ]; nativeInstallCheckInputs = [ versionCheckHook @@ -83,7 +84,7 @@ rustPlatform.buildRustPackage rec { meta = { description = "Terminal workspace with batteries included"; homepage = "https://zellij.dev/"; - changelog = "https://github.com/zellij-org/zellij/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/zellij-org/zellij/blob/v${finalAttrs.version}/CHANGELOG.md"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ therealansh @@ -94,4 +95,4 @@ rustPlatform.buildRustPackage rec { ]; mainProgram = "zellij"; }; -} +})