fw: add nix-update-script

This commit is contained in:
Petr Portnov
2026-03-06 17:50:56 +03:00
parent daf9ec3a12
commit f99a5f5c57
+8 -1
View File
@@ -6,6 +6,8 @@
libgit2,
openssl,
zlib,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -15,7 +17,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
src = fetchFromGitHub {
owner = "brocode";
repo = "fw";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-tqtiAw4+bnCJMF37SluAE9NM55MAjBGkJTvGLcmYFnA=";
};
@@ -35,6 +37,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
OPENSSL_NO_VENDOR = true;
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Workspace productivity booster";
homepage = "https://github.com/brocode/fw";