2023-06-05 18:02:44 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jotdown";
|
2024-03-20 23:23:11 +00:00
|
|
|
version = "0.4.0";
|
2023-06-05 18:02:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hellux";
|
|
|
|
repo = "jotdown";
|
|
|
|
rev = version;
|
2024-03-20 23:23:11 +00:00
|
|
|
hash = "sha256-Q1BjmcA5otOkeEe8KQiqKGKHSeGntj+ktcNMrdbGHZI=";
|
2023-06-05 18:02:44 +00:00
|
|
|
};
|
|
|
|
|
2024-03-20 23:23:11 +00:00
|
|
|
cargoHash = "sha256-bkMJ7ApM+GsshwIFuYsH19CnU6ebq0GfwQvVp9QD46A=";
|
2023-06-05 18:02:44 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A minimal Djot CLI";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "jotdown";
|
2023-06-05 18:02:44 +00:00
|
|
|
homepage = "https://github.com/hellux/jotdown";
|
|
|
|
changelog = "https://github.com/hellux/jotdown/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|