mastodon: fix indexing statuses in elasticsearch

This commit is contained in:
Izorkin 2022-04-07 10:11:32 +03:00 committed by Kerstin
parent a7bbda4271
commit 239982c6c9

View File

@ -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;