Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
748 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "present";
version = "0.2.3";
src = fetchFromGitHub {
owner = "terror";
repo = "present";
rev = "43c10253dc31038614eba5824588dbf2716212d6A";
sha256 = "aMy8Qn1kUM7jmvD9nGjBk1XXQF1rTLfnPDJOh9d4uIg=";
};
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";
};
}