Replace mastodon patch
This commit is contained in:
parent
454b0b9b09
commit
b5e718eede
2 changed files with 55 additions and 16 deletions
55
patches/223547.patch
Normal file
55
patches/223547.patch
Normal file
|
@ -0,0 +1,55 @@
|
|||
From 2852d296f1fa43ca89d2c8aa342e3b5d2deb3a42 Mon Sep 17 00:00:00 2001
|
||||
From: Izorkin <izorkin@elven.pw>
|
||||
Date: Tue, 28 Mar 2023 13:19:25 +0300
|
||||
Subject: [PATCH] mastodon: update ruby package
|
||||
|
||||
---
|
||||
pkgs/servers/mastodon/gemset.nix | 5 ++---
|
||||
pkgs/servers/mastodon/source.nix | 9 +++++++--
|
||||
2 files changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/pkgs/servers/mastodon/gemset.nix b/pkgs/servers/mastodon/gemset.nix
|
||||
index 5c1a1e3d985ee..3e1632860b56e 100644
|
||||
--- a/pkgs/servers/mastodon/gemset.nix
|
||||
+++ b/pkgs/servers/mastodon/gemset.nix
|
||||
@@ -353,15 +353,14 @@
|
||||
version = "1.0.0";
|
||||
};
|
||||
blurhash = {
|
||||
- dependencies = ["ffi"];
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
- sha256 = "1rs61mwdiyriq8mb8na2sfrqzz8igls04md63ajyhk4yj8d2j0sz";
|
||||
+ sha256 = "057afgqy73n8vm7k3cr4pbwm1hhqnm58lp4x7bgm5wzbs39m7xf8";
|
||||
type = "gem";
|
||||
};
|
||||
- version = "0.1.6";
|
||||
+ version = "0.1.7";
|
||||
};
|
||||
bootsnap = {
|
||||
dependencies = ["msgpack"];
|
||||
diff --git a/pkgs/servers/mastodon/source.nix b/pkgs/servers/mastodon/source.nix
|
||||
index b51afb602c2bf..19ee9982aaf73 100644
|
||||
--- a/pkgs/servers/mastodon/source.nix
|
||||
+++ b/pkgs/servers/mastodon/source.nix
|
||||
@@ -1,5 +1,5 @@
|
||||
# This file was generated by pkgs.mastodon.updateScript.
|
||||
-{ fetchgit, applyPatches }: let
|
||||
+{ fetchgit, applyPatches, fetchpatch }: let
|
||||
src = fetchgit {
|
||||
url = "https://github.com/mastodon/mastodon.git";
|
||||
rev = "v4.1.1";
|
||||
@@ -7,5 +7,10 @@
|
||||
};
|
||||
in applyPatches {
|
||||
inherit src;
|
||||
- patches = [];
|
||||
+ patches = [
|
||||
+ (fetchpatch {
|
||||
+ url = "https://github.com/mastodon/mastodon/commit/61b069b20ef6977703721ae44ae8a68be6bb0992.patch";
|
||||
+ hash = "sha256-cF0wtbjTNbsyqHb3uy5zYFaACIcziJ2ulJpOT5VoDO0=";
|
||||
+ })
|
||||
+ ];
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
diff --git a/pkgs/servers/mastodon/default.nix b/pkgs/servers/mastodon/default.nix
|
||||
index 8f34d284df2..9d1a25e4e97 100644
|
||||
--- a/pkgs/servers/mastodon/default.nix
|
||||
+++ b/pkgs/servers/mastodon/default.nix
|
||||
@@ -31,9 +31,10 @@ stdenv.mkDerivation rec {
|
||||
cp -a "$gem/" "$gem.new"
|
||||
rm "$gem"
|
||||
# needed on macOS, otherwise the mv yields permission denied
|
||||
- chmod +w "$gem.new"
|
||||
+ chmod -R +w "$gem.new"
|
||||
mv "$gem.new" "$gem"
|
||||
done
|
||||
+ cp "$out"/lib/ruby/gems/*/gems/blurhash-*/lib/encode.so "$out"/lib/ruby/gems/*/gems/blurhash-*/ext/blurhash/
|
||||
'';
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue