2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, openssl }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tootik";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.11.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dimkr";
|
|
|
|
repo = "tootik";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-aAIyEUeIZvDbWfUcfcETGrB3Md8GqRB8hvRBUtMU5Zs=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-kAnGMNBWqH37QETnn2ncp7qOaCSx6Xd4HCFhCehh/kU=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ openssl ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
go generate ./migrations
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-X github.com/dimkr/tootik/buildinfo.Version=${version}" ];
|
|
|
|
|
|
|
|
tags = [ "fts5" ];
|
|
|
|
|
|
|
|
doCheck = !(stdenv.isDarwin && stdenv.isAarch64);
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A federated nanoblogging service with a Gemini frontend";
|
|
|
|
homepage = "https://github.com/dimkr/tootik";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
|
|
mainProgram = "tootik";
|
|
|
|
};
|
|
|
|
}
|