File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments