Skip to content

Commit

Permalink
mitra: Init at 3.9.0 (NixOS#356298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 7, 2024
2 parents c7664ca + 8f6ebec commit 6627bae
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/by-name/mi/mitra/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
rustPlatform,
fetchFromGitea,
}:

rustPlatform.buildRustPackage rec {
pname = "mitra";
version = "3.9.0";

src = fetchFromGitea {
domain = "codeberg.org";
owner = "silverpill";
repo = "mitra";
rev = "v${version}";
hash = "sha256-reBG9h3jI4ONxYIwM2QdXlTC8ohmSrPm18sLOeI/2wY=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-WoJzFhxBDHuUNGaNsqieev93hg0Eo604tAM0HZJv9tA=";

# MEMO: mitra v3.9.0 tests failed with cargo option, "--offline"
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";
};
}

0 comments on commit 6627bae

Please sign in to comment.