88 pkg-config ,
99 curl ,
1010 openssl ,
11+ writableTmpDirAsHomeHook ,
1112 versionCheckHook ,
1213 nix-update-script ,
1314} :
1415
15- rustPlatform . buildRustPackage rec {
16+ rustPlatform . buildRustPackage ( finalAttrs : {
1617 pname = "zellij" ;
17- version = "0.41.2 " ;
18+ version = "0.42.0 " ;
1819
1920 src = fetchFromGitHub {
2021 owner = "zellij-org" ;
2122 repo = "zellij" ;
22- tag = "v${ version } " ;
23- hash = "sha256-xdWfaXWmqFJuquE7n3moUjGuFqKB90OE6lqPuC3onOg =" ;
23+ tag = "v${ finalAttrs . version } " ;
24+ hash = "sha256-qvm8mRm/YYcuNX2Rv0tYjcIXjaF9dkwd7wpL++ho3t0 =" ;
2425 } ;
2526
2627 # Remove the `vendored_curl` feature in order to link against the libcurl from nixpkgs instead of
@@ -31,7 +32,7 @@ rustPlatform.buildRustPackage rec {
3132 '' ;
3233
3334 useFetchCargoVendor = true ;
34- cargoHash = "sha256-nfk+4vf9toPwWcAgNtK9uy263g+j/Km1v8SJexlHhNg =" ;
35+ cargoHash = "sha256-cAO8A/e6tkUY7pm/T4Riz4UPIc22oj5FFC6sQL1QIuc =" ;
3536
3637 env . OPENSSL_NO_VENDOR = 1 ;
3738
@@ -47,9 +48,9 @@ rustPlatform.buildRustPackage rec {
4748 openssl
4849 ] ;
4950
50- preCheck = ''
51- HOME=$(mktemp -d)
52- '' ;
51+ nativeCheckInputs = [
52+ writableTmpDirAsHomeHook
53+ ] ;
5354
5455 nativeInstallCheckInputs = [
5556 versionCheckHook
@@ -83,7 +84,7 @@ rustPlatform.buildRustPackage rec {
8384 meta = {
8485 description = "Terminal workspace with batteries included" ;
8586 homepage = "https://zellij.dev/" ;
86- changelog = "https://github.com/zellij-org/zellij/blob/v${ version } /CHANGELOG.md" ;
87+ changelog = "https://github.com/zellij-org/zellij/blob/v${ finalAttrs . version } /CHANGELOG.md" ;
8788 license = with lib . licenses ; [ mit ] ;
8889 maintainers = with lib . maintainers ; [
8990 therealansh
@@ -94,4 +95,4 @@ rustPlatform.buildRustPackage rec {
9495 ] ;
9596 mainProgram = "zellij" ;
9697 } ;
97- }
98+ } )
0 commit comments