41 lines
845 B
Nix
41 lines
845 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitea,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mitra";
|
|
version = "4.7.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "silverpill";
|
|
repo = "mitra";
|
|
rev = "v${version}";
|
|
hash = "sha256-xSgwCKjYuF6nUo4P7NrGocyhqBbBV/sx2BGKjWCEtB0=";
|
|
};
|
|
|
|
cargoHash = "sha256-dwaW69Mxn4GVFqOI+UUGkJG9yc3SWob0FcC1oMGsHg8=";
|
|
|
|
# require running database
|
|
doCheck = false;
|
|
|
|
RUSTFLAGS = [
|
|
# MEMO: mitra use ammonia crate with unstable rustc flag
|
|
"--cfg=ammonia_unstable"
|
|
];
|
|
|
|
buildFeatures = [
|
|
"production"
|
|
];
|
|
|
|
meta = {
|
|
description = "Federated micro-blogging platform";
|
|
homepage = "https://codeberg.org/silverpill/mitra";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ haruki7049 ];
|
|
mainProgram = "mitra";
|
|
};
|
|
}
|