projectable: 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 = "dzfrias";
|
||||
repo = "projectable";
|
||||
rev = finalAttrs.version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-GM/dPmLnv1/Qj6QhBxPu5kO/SDnbY7Ntupf1FGkmrUY=";
|
||||
};
|
||||
|
||||
@@ -36,10 +38,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
OPENSSL_NO_VENDOR = true;
|
||||
};
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "TUI file manager built for projects";
|
||||
homepage = "https://github.com/dzfrias/projectable";
|
||||
changelog = "https://github.com/dzfrias/projectable/releases/tag/${finalAttrs.src.rev}";
|
||||
changelog = "https://github.com/dzfrias/projectable/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.progrm_jarvis ];
|
||||
mainProgram = "prj";
|
||||
|
||||
Reference in New Issue
Block a user