fw: add nix-update-script

This commit is contained in:
Petr Portnov 2026-03-05 17:45:35 +03:00
parent daf9ec3a12
commit f99a5f5c57
No known key found for this signature in database
GPG key ID: 11922217F8288484

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";