Add ugly mastodon build fix
This commit is contained in:
parent
27dd7638fa
commit
815f2b57b9
1 changed files with 16 additions and 0 deletions
16
patches/mastodon.patch
Normal file
16
patches/mastodon.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
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