94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
32 lines
675 B
Nix
32 lines
675 B
Nix
{ 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=";
|
|
};
|
|
|
|
cargoSha256 = "VKY/FQUrFWtLxKoK6LP6qPMqNN4absZvnAbH9mha1fI=";
|
|
|
|
# required for tests
|
|
postPatch = ''
|
|
patchShebangs bin/get_version
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "A script interpolation engine for markdown documents";
|
|
homepage = "https://github.com/terror/present/";
|
|
license = licenses.cc0;
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
|
};
|
|
}
|