Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
846 B
Nix
41 lines
846 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitea,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mitra";
|
|
version = "4.10.1";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "silverpill";
|
|
repo = "mitra";
|
|
rev = "v${version}";
|
|
hash = "sha256-JGiPCvfWsluWeJk14cbAVUJO69OKXG/+93FrGMRlCxU=";
|
|
};
|
|
|
|
cargoHash = "sha256-DmQo/DDD5b1bpBiB5JfpIDD9cQ+ColorY4kTW1Xh9lo=";
|
|
|
|
# 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";
|
|
};
|
|
}
|