2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitea
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
2023-04-29 16:46:19 +00:00
|
|
|
, git
|
2021-12-06 16:07:01 +00:00
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fedigroups";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.4.5";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.ondrovo.com";
|
|
|
|
owner = "MightyPork";
|
|
|
|
repo = "group-actor";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-NMqoYUNN2ntye9mNC3KAAc0DBg+QY7+6/DASwHPexY0=";
|
|
|
|
forceFetchGit = true; # Archive generation is disabled on this gitea instance
|
|
|
|
leaveDotGit = true; # git command in build.rs
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
# The lockfile in the repo is not up to date
|
|
|
|
postPatch = ''
|
|
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"elefren-0.22.0" = "sha256-zCmopdkBHT0gzNGQqZzsnIyMyAt0XBbQdOCpegF6TsY=";
|
|
|
|
};
|
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2023-04-29 16:46:19 +00:00
|
|
|
git
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://git.ondrovo.com/MightyPork/group-actor#fedi-groups";
|
|
|
|
downloadPage = "https://git.ondrovo.com/MightyPork/group-actor/releases";
|
|
|
|
description = "An approximation of groups usable with Fediverse software that implements the Mastodon client API";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "fedigroups";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|