Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
cmake,
|
|
pkg-config,
|
|
oniguruma,
|
|
installShellFiles,
|
|
tpnote,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "tpnote";
|
|
version = "1.25.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getreu";
|
|
repo = "tp-note";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-vmHRpY2KvG6vxVQ6OVi/u6wpD8oqQFXn2IJOT0Nh/V0=";
|
|
};
|
|
|
|
cargoHash = "sha256-dltBOA6pxy2gLemVoX8l0Z+xkiJvhGWSmediWWnN1bc=";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
oniguruma
|
|
];
|
|
|
|
postInstall = ''
|
|
installManPage docs/build/man/man1/tpnote.1
|
|
'';
|
|
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
|
|
# The `tpnote` crate has no unit tests. All tests are in `tpnote-lib`.
|
|
checkType = "debug";
|
|
cargoTestFlags = "--package tpnote-lib";
|
|
doCheck = true;
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/getreu/tp-note/releases/tag/v${finalAttrs.version}";
|
|
description = "Markup enhanced granular note-taking";
|
|
homepage = "https://blog.getreu.net/projects/tp-note/";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "tpnote";
|
|
maintainers = with lib.maintainers; [ getreu ];
|
|
};
|
|
})
|