depot/third_party/nixpkgs/pkgs/servers/snac2/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

33 lines
679 B
Nix

{ stdenv
, lib
, fetchFromGitea
, curl
, openssl
}:
stdenv.mkDerivation rec {
pname = "snac2";
version = "2.12";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "grunfink";
repo = pname;
rev = version;
hash = "sha256-mSk4qWte3Lksb0fxUfVZGT34eWsS4VfUlGN5yt4/pgs=";
};
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;
};
}