15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 hash = "sha256-TT34+r4f3TaurLwyXxQa5AZT1xPOKkDYPra/bgchoTc=";
26 cargoHash = "sha256-1+LPsTvJwouFkJoCEkRUjKGqldXLYyF3Y4UuISoYF2A=";
38 ++ lib.optionals stdenv.hostPlatform.isDarwin (
39 with darwin.apple_sdk.frameworks;
48 installManPage docs/build/man/man1/tpnote.1
51 RUSTONIG_SYSTEM_LIBONIG = true;
53 passthru.tests.version = testers.testVersion { package = tpnote; };
55 # The `tpnote` crate has no unit tests. All tests are in `tpnote-lib`.
57 cargoTestFlags = "--package tpnote-lib";
61 changelog = "https://github.com/getreu/tp-note/releases/tag/v${version}";
62 description = "Markup enhanced granular note-taking";
63 homepage = "https://blog.getreu.net/projects/tp-note/";
64 license = lib.licenses.mit;
65 mainProgram = "tpnote";
66 maintainers = with lib.maintainers; [ getreu ];