mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
35 lines
848 B
Nix
35 lines
848 B
Nix
{ lib, stdenv, buildGoModule, fetchFromGitHub, openssl }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tootik";
|
|
version = "0.11.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dimkr";
|
|
repo = "tootik";
|
|
rev = version;
|
|
hash = "sha256-b4uSztroeOKPOyPwxVB3ofkAmDpWFstHDQX2IwQwG/4=";
|
|
};
|
|
|
|
vendorHash = "sha256-B+SmzNLAXIjkUO1JGpD1eqa52Z1zOdPiG8urvLFXf88=";
|
|
|
|
nativeBuildInputs = [ openssl ];
|
|
|
|
preBuild = ''
|
|
go generate ./migrations
|
|
'';
|
|
|
|
ldflags = [ "-X github.com/dimkr/tootik/buildinfo.Version=${version}" ];
|
|
|
|
tags = [ "fts5" ];
|
|
|
|
doCheck = !(stdenv.isDarwin && stdenv.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";
|
|
};
|
|
}
|