default.nix (703B)
1 { lib, buildGoModule, fetchFromSourcehut, scdoc }: 2 3 buildGoModule rec { 4 pname = "gmnitohtml"; 5 version = "0.1.1"; 6 7 src = fetchFromSourcehut { 8 owner = "~adnano"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-XcHJbqmfSkW6lt2xRlrf9AJfwLOZqdgsL1v0aK2bQwo="; 12 }; 13 14 nativeBuildInputs = [ scdoc ]; 15 16 vendorSha256 = "sha256-Cx8x8AISRVTA4Ufd73vOVky97LX23NkizHDingr/zVk="; 17 18 installPhase = '' 19 runHook preInstall 20 make PREFIX=$out install 21 runHook postInstall 22 ''; 23 24 meta = with lib; { 25 description = "Gemini text to HTML converter"; 26 inherit (src.meta) homepage; 27 license = licenses.mit; 28 maintainers = [ maintainers.sikmir ]; 29 platforms = platforms.unix; 30 }; 31 }