2023-12-04 15:12:07 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2024-03-23 18:41:23 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-12-04 15:12:07 +00:00
|
|
|
pname = "prettypst";
|
2024-11-10 11:23:10 +00:00
|
|
|
version = "unstable-2024-10-20";
|
2023-12-04 15:12:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antonWetzel";
|
|
|
|
repo = "prettypst";
|
2024-11-10 11:23:10 +00:00
|
|
|
rev = "a724b56de0527faf0f1f1eecb17d0b847872411c";
|
|
|
|
hash = "sha256-CVvcrytEG2q6kPiGBMfy/oQCD63Gm2AenvLUhCUx6fw=";
|
2023-12-04 15:12:07 +00:00
|
|
|
};
|
|
|
|
|
2024-11-10 11:23:10 +00:00
|
|
|
cargoHash = "sha256-zUeCthQ2fQ1P0gxN5XXg6a+Op8JFMrzU02Mh0mpwv30=";
|
2023-12-04 15:12:07 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-03-23 18:41:23 +00:00
|
|
|
changelog = "https://github.com/antonWetzel/prettypst/blob/${src.rev}/changelog.md";
|
2023-12-04 15:12:07 +00:00
|
|
|
description = "Formatter for Typst";
|
|
|
|
homepage = "https://github.com/antonWetzel/prettypst";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
mainProgram = "prettypst";
|
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|