diff options
author | Izorkin <izorkin@elven.pw> | 2022-04-07 10:11:32 +0300 |
---|---|---|
committer | Kerstin <kerstin@erictapen.name> | 2022-04-07 14:12:54 +0200 |
commit | 239982c6c932b98eb81fec3d18a918f288387ab4 (patch) | |
tree | 087b0ff56566c543566967c4f27569bef22f0dab /pkgs/servers | |
parent | a7bbda4271e0155b1115c86fe7e95dc006a8bbff (diff) |
mastodon: fix indexing statuses in elasticsearch
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/mastodon/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/servers/mastodon/default.nix b/pkgs/servers/mastodon/default.nix index ef4c22b1c2c07..84010a0903688 100644 --- a/pkgs/servers/mastodon/default.nix +++ b/pkgs/servers/mastodon/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, nodejs-slim, mkYarnPackage, fetchFromGitHub, bundlerEnv, nixosTests , yarn, callPackage, imagemagick, ffmpeg, file, ruby_3_0, writeShellScript , fetchYarnDeps, fixup_yarn_lock +, fetchpatch # Allow building a fork or custom version of Mastodon: , pname ? "mastodon" @@ -21,6 +22,14 @@ stdenv.mkDerivation rec { sha256 = "sha256-Ngfs15YKLfSBOKju3BzpZFnenB370jId2G1g9Qy1y5w="; }; + patches = [ + # Fix indexing statuses in ElasticSearch + (fetchpatch { + url = "https://github.com/mastodon/mastodon/commit/ef196c913c77338be5ebb1e02af2f6225f857080.patch"; + sha256 = "sha256-uw8m6j4BzMQtev0LNLeIHW0xOJEmj3JikT/6gVfmvzs="; + }) + ]; + mastodon-gems = bundlerEnv { name = "${pname}-gems-${version}"; inherit version; |