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