nixpkgs/pkgs/servers/snac2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
679 B
Nix
Raw Normal View History

2022-12-02 17:59:41 +03:00
{ stdenv
, lib
, fetchFromGitea
, curl
, openssl
}:
stdenv.mkDerivation rec {
pname = "snac2";
2023-01-18 13:53:57 +03:00
version = "2.15";
2022-12-02 17:59:41 +03:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "grunfink";
repo = pname;
rev = version;
2023-01-18 13:53:57 +03:00
hash = "sha256-aK98nolgf/pju6jPZell1qLZMxArDna4FMqf3THGV1I=";
2022-12-02 17:59:41 +03:00
};
buildInputs = [ curl openssl ];
makeFlags = [ "PREFIX=$(out)" ];
preInstall = "mkdir -p $out/bin";
meta = with lib; {
homepage = "https://codeberg.org/grunfink/snac2";
description = "A simple, minimalistic ActivityPub instance (2.x, C)";
license = licenses.mit;
maintainers = with maintainers; [ misuzu ];
platforms = platforms.linux;
};
}