fw: add nix-update-script
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user