{ lib, stdenv, buildGoModule, fetchFromGitHub, openssl, }: buildGoModule rec { pname = "tootik"; version = "0.13.0"; src = fetchFromGitHub { owner = "dimkr"; repo = "tootik"; rev = version; hash = "sha256-YVfxyfPYaGbfGdWtcoJhrMBV+1FI0x7m5OA1oOdPFDo="; }; vendorHash = "sha256-8GHyMF/WfoQOnoF0qHHC3aMTuNeB8eVynmXJf6CD+Es="; nativeBuildInputs = [ openssl ]; preBuild = '' go generate ./migrations ''; ldflags = [ "-X github.com/dimkr/tootik/buildinfo.Version=${version}" ]; tags = [ "fts5" ]; doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); meta = { description = "Federated nanoblogging service with a Gemini frontend"; homepage = "https://github.com/dimkr/tootik"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ sikmir ]; mainProgram = "tootik"; }; }