at 24.05-pre 675 B view raw
1{ lib 2, fetchFromGitHub 3, rustPlatform 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "present"; 8 version = "0.2.2"; 9 10 src = fetchFromGitHub { 11 owner = "terror"; 12 repo = pname; 13 rev = version; 14 sha256 = "+kCHe84ikdCLd7j5YwP2j3xz+XTzzo/kLy+b9YUFDnI="; 15 }; 16 17 cargoSha256 = "VKY/FQUrFWtLxKoK6LP6qPMqNN4absZvnAbH9mha1fI="; 18 19 # required for tests 20 postPatch = '' 21 patchShebangs bin/get_version 22 ''; 23 24 doCheck = true; 25 26 meta = with lib; { 27 description = "A script interpolation engine for markdown documents"; 28 homepage = "https://github.com/terror/present/"; 29 license = licenses.cc0; 30 maintainers = with maintainers; [ cameronfyfe ]; 31 }; 32}