fix(ds-fr): Add patches

This commit is contained in:
Tom Hubrecht 2023-11-29 14:45:21 +01:00
parent 1f725215db
commit a4d9497158
2 changed files with 18 additions and 0 deletions

View file

@ -94,6 +94,11 @@ let
id = "bc4742aaacb174a55a08baae5f354ada3fba4577"; id = "bc4742aaacb174a55a08baae5f354ada3fba4577";
hash = "sha256-LShcRzj/lnFQyJtc9+RxNQq8tsCcdYrwhe2BjqLr1pQ="; hash = "sha256-LShcRzj/lnFQyJtc9+RxNQq8tsCcdYrwhe2BjqLr1pQ=";
} }
# correction des svg des logos DGNum et DN
{
id = "ee474712a3e50d186acd8bbb52f60c1e4fee2f81";
hash = "sha256-yoPCZOPPOk84n2oAISzjzJ8n3eWtsYqPglayRKcJGII=";
}
]; ];
in stdenv.mkDerivation { in stdenv.mkDerivation {
@ -109,6 +114,7 @@ in stdenv.mkDerivation {
./patches/smtp_settings.patch ./patches/smtp_settings.patch
./patches/garage.patch ./patches/garage.patch
./patches/secrets-fc.patch ./patches/secrets-fc.patch
./patches/uninterlace_png.patch
] ++ dgn-patches; ] ++ dgn-patches;
buildPhase = '' buildPhase = ''

View file

@ -0,0 +1,12 @@
diff --git a/app/controllers/concerns/uninterlace_png_concern.rb b/app/controllers/concerns/uninterlace_png_concern.rb
index 8e9d06251..0870357c6 100644
--- a/app/controllers/concerns/uninterlace_png_concern.rb
+++ b/app/controllers/concerns/uninterlace_png_concern.rb
@@ -14,6 +14,6 @@ module UninterlacePngConcern
def interlaced?(png_path)
png = MiniMagick::Image.open(png_path)
- png.data["interlace"] != "None"
+ png.details["interlace"] != "None"
end
end