Skip to content

Commit 6627bae

Browse files
authored
mitra: Init at 3.9.0 (#356298)
2 parents c7664ca + 8f6ebec commit 6627bae

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

pkgs/by-name/mi/mitra/package.nix

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitea,
5+
}:
6+
7+
rustPlatform.buildRustPackage rec {
8+
pname = "mitra";
9+
version = "3.9.0";
10+
11+
src = fetchFromGitea {
12+
domain = "codeberg.org";
13+
owner = "silverpill";
14+
repo = "mitra";
15+
rev = "v${version}";
16+
hash = "sha256-reBG9h3jI4ONxYIwM2QdXlTC8ohmSrPm18sLOeI/2wY=";
17+
};
18+
19+
useFetchCargoVendor = true;
20+
cargoHash = "sha256-WoJzFhxBDHuUNGaNsqieev93hg0Eo604tAM0HZJv9tA=";
21+
22+
# MEMO: mitra v3.9.0 tests failed with cargo option, "--offline"
23+
doCheck = false;
24+
25+
RUSTFLAGS = [
26+
# MEMO: mitra use ammonia crate with unstable rustc flag
27+
"--cfg=ammonia_unstable"
28+
];
29+
30+
buildFeatures = [
31+
"production"
32+
];
33+
34+
meta = {
35+
description = "Federated micro-blogging platform";
36+
homepage = "https://codeberg.org/silverpill/mitra";
37+
license = lib.licenses.agpl3Only;
38+
maintainers = with lib.maintainers; [ haruki7049 ];
39+
mainProgram = "mitra";
40+
};
41+
}

0 commit comments

Comments
 (0)