chore: fmt

main
Robert Gerus 2023-11-30 13:41:34 +01:00 committed by Ari Gato
parent 27f5946f71
commit 817f089a8e
3 changed files with 1358 additions and 1151 deletions

View File

@ -1,17 +1,12 @@
{ lib, stdenv, nodejs-slim, bundlerEnv, nixosTests
, yarn, callPackage, imagemagick, ffmpeg, file, ruby, writeShellScript
, fetchYarnDeps, prefetch-yarn-deps
, brotli
{ lib, stdenv, nodejs-slim, bundlerEnv, nixosTests, yarn, callPackage
, imagemagick, ffmpeg, file, ruby, writeShellScript, fetchYarnDeps
, prefetch-yarn-deps, brotli
# Allow building a fork or custom version of Mastodon:
, pname ? "mastodon"
, version ? srcOverride.version
, patches ? []
# Allow building a fork or custom version of Mastodon:
, pname ? "mastodon", version ? srcOverride.version, patches ? [ ]
# src is a package
, srcOverride ? callPackage ./source.nix { inherit patches; }
, gemset ? ./. + "/gemset.nix"
, yarnHash ? srcOverride.yarnHash
}:
, gemset ? ./. + "/gemset.nix", yarnHash ? srcOverride.yarnHash }:
stdenv.mkDerivation rec {
inherit pname version;
@ -45,7 +40,14 @@ stdenv.mkDerivation rec {
hash = yarnHash;
};
nativeBuildInputs = [ prefetch-yarn-deps nodejs-slim yarn mastodonGems mastodonGems.wrappedRuby brotli ];
nativeBuildInputs = [
prefetch-yarn-deps
nodejs-slim
yarn
mastodonGems
mastodonGems.wrappedRuby
brotli
];
RAILS_ENV = "production";
NODE_ENV = "production";
@ -160,7 +162,8 @@ stdenv.mkDerivation rec {
};
meta = with lib; {
description = "Self-hosted, globally interconnected microblogging software based on ActivityPub";
description =
"Self-hosted, globally interconnected microblogging software based on ActivityPub";
homepage = "https://joinmastodon.org";
license = licenses.agpl3Plus;
platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,7 @@
# This file was generated by pkgs.mastodon.updateScript.
{ fetchFromGitHub, applyPatches, patches ? [] }:
let
version = "";
in
applyPatches {
{ fetchFromGitHub, applyPatches, patches ? [ ] }:
let version = "";
in applyPatches {
inherit version;
src = fetchFromGitHub {
owner = "arachnist";
@ -11,6 +9,6 @@ applyPatches {
rev = "161a19f3aa8d9fa40ae2a08fdb81e42939ae32dd";
hash = "sha256-zPK7HEDYfKLlrFB9VwLxWJSCSbP4VPWzaO3H37hrGG0=";
};
patches = [./local-new-fixes.patch];
patches = [ ./local-new-fixes.patch ];
yarnHash = "sha256-P7KswzsCusyiS4MxUFnC1HYMTQ6fLpIwd97AglCukIk=";
}