at master 34 lines 748 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5}: 6 7rustPlatform.buildRustPackage { 8 pname = "present"; 9 version = "0.2.3"; 10 11 src = fetchFromGitHub { 12 owner = "terror"; 13 repo = "present"; 14 rev = "43c10253dc31038614eba5824588dbf2716212d6A"; 15 sha256 = "aMy8Qn1kUM7jmvD9nGjBk1XXQF1rTLfnPDJOh9d4uIg="; 16 }; 17 18 cargoHash = "sha256-rLLhZL8WQs68+nwCrJ9Dej3T1JU9t+ZrBhSMxAdOfbw="; 19 20 # required for tests 21 postPatch = '' 22 patchShebangs bin/get_version 23 ''; 24 25 doCheck = true; 26 27 meta = with lib; { 28 description = "Script interpolation engine for markdown documents"; 29 homepage = "https://github.com/terror/present/"; 30 license = licenses.cc0; 31 maintainers = with maintainers; [ cameronfyfe ]; 32 mainProgram = "present"; 33 }; 34}