๐Ÿ A very simple static Gemini server, now with Titan support!
cpp gemini titan gemini-protocol titan-protocol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: Support macOS

Fuwn 2a688817 48e26386

+32 -23
+1 -1
build.ninja
··· 1 1 cc = clang++ 2 - cxxflags = -std=c++23 -Weverything -Wno-padded -Wno-c++98-compat -MMD -Wno-c++98-compat-pedantic 2 + cxxflags = -std=c++20 -Weverything -Wno-padded -Wno-c++98-compat -MMD -Wno-c++98-compat-pedantic 3 3 ldflags = -lssl -lcrypto 4 4 outdir = build 5 5 name = maple
+27 -21
flake.nix
··· 34 34 license = licenses.gpl3Only; 35 35 maintainers = [ maintainers.Fuwn ]; 36 36 mainPackage = "maple"; 37 - platforms = platforms.linux; 37 + platforms = platforms.unix; 38 38 }; 39 39 40 40 maple = 41 41 with pkgs; 42 - (stdenvAdapters.useMoldLinker clangStdenvNoLibs).mkDerivation { 43 - inherit meta; 42 + ( 43 + if pkgs.stdenv.isDarwin then 44 + pkgs.clangStdenvNoLibs 45 + else 46 + pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenvNoLibs 47 + ).mkDerivation 48 + { 49 + inherit meta; 44 50 45 - name = "maple"; 46 - version = "0.1.6"; 47 - src = lib.cleanSource ./.; 51 + name = "maple"; 52 + version = "0.1.6"; 53 + src = lib.cleanSource ./.; 48 54 49 - nativeBuildInputs = [ 50 - ninja 51 - clang 52 - ]; 55 + nativeBuildInputs = [ 56 + ninja 57 + clang 58 + ]; 53 59 54 - buildInputs = [ 55 - libressl.dev 56 - ]; 60 + buildInputs = [ 61 + libressl.dev 62 + ]; 57 63 58 - buildPhase = '' 59 - mkdir -p $out/bin 60 - ninja 61 - ''; 64 + buildPhase = '' 65 + mkdir -p $out/bin 66 + ninja 67 + ''; 62 68 63 - installPhase = '' 64 - cp build/maple $out/bin/maple 65 - ''; 66 - }; 69 + installPhase = '' 70 + cp build/maple $out/bin/maple 71 + ''; 72 + }; 67 73 in 68 74 { 69 75 packages = {
+4 -1
maple/maple.cc
··· 20 20 21 21 #include <algorithm> 22 22 #include <array> 23 - #include <asm-generic/socket.h> 24 23 #include <cctype> 25 24 #include <csignal> 26 25 #include <cstddef> ··· 36 35 #include <sys/socket.h> 37 36 #include <unistd.h> 38 37 #include <vector> 38 + 39 + #if !defined(__APPLE__) 40 + #include <asm-generic/socket.h> 41 + #endif 39 42 40 43 #include "gemini.hh" 41 44 #include "maple.hh"