35 lines
778 B
Nix
35 lines
778 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "present";
|
|
version = "0.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "terror";
|
|
repo = pname;
|
|
rev = "43c10253dc31038614eba5824588dbf2716212d6A";
|
|
sha256 = "aMy8Qn1kUM7jmvD9nGjBk1XXQF1rTLfnPDJOh9d4uIg=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-rLLhZL8WQs68+nwCrJ9Dej3T1JU9t+ZrBhSMxAdOfbw=";
|
|
|
|
# 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 ];
|
|
mainProgram = "present";
|
|
};
|
|
}
|