11 stdenv.mkDerivation rec {
15 src = fetchFromGitea {
16 domain = "codeberg.org";
20 hash = "sha256-CIn+/LC6z+2lnU8w3EzrBIBg94J9OnCxME2mZW65OwE=";
23 buildInputs = [ curl openssl ];
25 makeFlags = [ "PREFIX=$(out)" ];
27 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [
28 "-Dst_mtim=st_mtimespec"
29 "-Dst_ctim=st_ctimespec"
33 tests.version = testers.testVersion {
35 command = "${meta.mainProgram} || true";
37 updateScript = nix-update-script { };
41 homepage = "https://codeberg.org/grunfink/snac2";
42 description = "Simple, minimalistic ActivityPub instance (2.x, C)";
43 changelog = "https://codeberg.org/grunfink/snac2/src/tag/${version}/RELEASE_NOTES.md";
44 license = licenses.mit;
45 maintainers = with maintainers; [ misuzu ];
46 platforms = platforms.unix;