49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "iwe";
|
|
version = "0.0.33";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iwe-org";
|
|
repo = "iwe";
|
|
tag = "iwe-v${finalAttrs.version}";
|
|
hash = "sha256-PjonpAyq6FPJs5mo4W3z9yIVU8auGGtTrK/GBxMcPbk=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-EfoDpa2hN9W2unci4rIi4gjlJV2NzdU77FbOW0OTu2c=";
|
|
|
|
cargoBuildFlags = [
|
|
"--package=iwe"
|
|
"--package=iwes"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"^iwe-v(.*)$"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Personal knowledge management system (editor plugin & command line utility)";
|
|
homepage = "https://iwe.md/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
phrmendes
|
|
HeitorAugustoLN
|
|
];
|
|
mainProgram = "iwe";
|
|
};
|
|
})
|