package.nix (857B)
1 { 2 lib, 3 buildGoModule, 4 fetchFromSourcehut, 5 scdoc, 6 installShellFiles, 7 }: 8 9 buildGoModule (finalAttrs: { 10 pname = "mdtohtml"; 11 version = "0.1.3"; 12 13 __structuredAttrs = true; 14 15 src = fetchFromSourcehut { 16 owner = "~adnano"; 17 repo = "mdtohtml"; 18 rev = finalAttrs.version; 19 hash = "sha256-qvd4Iz+1uNT1Y/DkHGRYBVCLeIpleQ58Ua4eSYv+ilQ="; 20 }; 21 22 nativeBuildInputs = [ 23 scdoc 24 installShellFiles 25 ]; 26 27 vendorHash = "sha256-b+xQpGSN6F79qTDqVpyEsEQGNgcR1/l7pzwIxqgTcic="; 28 29 postBuild = '' 30 scdoc < docs/mdtohtml.1.scd > docs/mdtohtml.1 31 ''; 32 33 postInstall = '' 34 installManPage docs/mdtohtml.1 35 ''; 36 37 meta = { 38 description = "Markdown to HTML converter"; 39 homepage = "https://git.sr.ht/~adnano/mdtohtml"; 40 license = lib.licenses.mit; 41 maintainers = [ lib.maintainers.sikmir ]; 42 mainProgram = "mdtohtml"; 43 }; 44 })
