2023-05-11 20:54:33 -06: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-03 06:29:10 -06:00
|
|
|
cargoHash = "sha256-VKY/FQUrFWtLxKoK6LP6qPMqNN4absZvnAbH9mha1fI=";
|
2023-05-11 20:54:33 -06:00
|
|
|
|
|
|
|
# required for tests
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs bin/get_version
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Script interpolation engine for markdown documents";
|
|
|
|
homepage = "https://github.com/terror/present/";
|
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
2023-11-26 18:17:53 -07:00
|
|
|
mainProgram = "present";
|
2023-05-11 20:54:33 -06:00
|
|
|
};
|
|
|
|
}
|