nixpkgs/pkgs/by-name/to/tootik/package.nix
2025-01-13 01:44:29 +04:00

42 lines
885 B
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
openssl,
}:
buildGoModule rec {
pname = "tootik";
version = "0.15.0";
src = fetchFromGitHub {
owner = "dimkr";
repo = "tootik";
tag = version;
hash = "sha256-Onl64ps8rfLVnZYQ2KPzS+mslgeNz2wpJuabwsqhXlM=";
};
vendorHash = "sha256-GSi+sQz7kgp1YHEzH/Y7rOOEEhhvzd75cVhSow3URaU=";
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";
};
}