15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 hash = "sha256-BSq+9qjBdJZvx65mumyPbjhbBHpHXgWeGqdx/xevL50=";
26 cargoHash = "sha256-jwG68aAG4D+ulsQa+UEyJu5fVwbrHeeW9bJNQfcpg4o=";
36 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
43 installManPage docs/build/man/man1/tpnote.1
46 RUSTONIG_SYSTEM_LIBONIG = true;
48 passthru.tests.version = testers.testVersion { package = tpnote; };
50 # The `tpnote` crate has no unit tests. All tests are in `tpnote-lib`.
52 cargoTestFlags = "--package tpnote-lib";
56 changelog = "https://github.com/getreu/tp-note/releases/tag/v${version}";
57 description = "Markup enhanced granular note-taking";
58 homepage = "https://blog.getreu.net/projects/tp-note/";
59 license = lib.licenses.mit;
60 mainProgram = "tpnote";
61 maintainers = with lib.maintainers; [ getreu ];