15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 hash = "sha256-KXkriFFn1GapoVimcK7Hqv1mUTZ2EbnnZPyX2izI2oo=";
26 cargoHash = "sha256-MCnQJ1cJeWUJ8L+u09px4COG7XUAVOOgBg8nUi37J90=";
36 ] ++ lib.optionals stdenv.hostPlatform.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 ];