2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "present";
|
|
|
|
version = "0.2.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terror";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "+kCHe84ikdCLd7j5YwP2j3xz+XTzzo/kLy+b9YUFDnI=";
|
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-VKY/FQUrFWtLxKoK6LP6qPMqNN4absZvnAbH9mha1fI=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
# required for tests
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs bin/get_version
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Script interpolation engine for markdown documents";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/terror/present/";
|
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "present";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|