mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitea,
|
|
rustPlatform,
|
|
pkg-config,
|
|
git,
|
|
openssl,
|
|
Security,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fedigroups";
|
|
version = "0.4.5";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.ondrovo.com";
|
|
owner = "MightyPork";
|
|
repo = "group-actor";
|
|
rev = "v${version}";
|
|
hash = "sha256-NMqoYUNN2ntye9mNC3KAAc0DBg+QY7+6/DASwHPexY0=";
|
|
forceFetchGit = true; # Archive generation is disabled on this gitea instance
|
|
leaveDotGit = true; # git command in build.rs
|
|
};
|
|
|
|
# The lockfile in the repo is not up to date
|
|
postPatch = ''
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"elefren-0.22.0" = "sha256-zCmopdkBHT0gzNGQqZzsnIyMyAt0XBbQdOCpegF6TsY=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
git
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optional stdenv.hostPlatform.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 = "Approximation of groups usable with Fediverse software that implements the Mastodon client API";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
platforms = platforms.all;
|
|
mainProgram = "fedigroups";
|
|
};
|
|
}
|