summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-11-24 13:43:43 -0500
committerGitHub <noreply@github.com>2023-11-24 13:43:43 -0500
commit48e0e407432e2633b43e285d3702865aed3a876c (patch)
tree3b8a2410fb1341e299f421c0870b2f256492d950
parentMerge pull request #269655 from NixOS/backport-269613-to-release-23.11 (diff)
parentminiflux: fix http user agent regression (diff)
downloadnixpkgs-48e0e407432e2633b43e285d3702865aed3a876c.tar.gz
Merge pull request #269653 from NixOS/backport-269545-to-release-23.11
[Backport release-23.11] miniflux: fix http user agent regression
-rw-r--r--pkgs/servers/miniflux/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/servers/miniflux/default.nix b/pkgs/servers/miniflux/default.nix
index 88244b78e220..85038a616450 100644
--- a/pkgs/servers/miniflux/default.nix
+++ b/pkgs/servers/miniflux/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGo121Module, fetchFromGitHub, installShellFiles, nixosTests }:
+{ lib, buildGo121Module, fetchFromGitHub, fetchpatch, installShellFiles, nixosTests }:
let
pname = "miniflux";
@@ -14,6 +14,15 @@ in buildGo121Module {
sha256 = "sha256-+oNF/Zwc1Z/cu3SQC/ZTekAW5Qef9RKrdszunLomGII=";
};
+ patches = [
+ (fetchpatch {
+ # https://github.com/miniflux/v2/pull/2193, remove after 2.0.50
+ name = "miniflux-user-agent-regression.patch";
+ url = "https://github.com/miniflux/v2/commit/7a03291442a4e35572c73a2fcfe809fa8e03063e.patch";
+ hash = "sha256-tJ1l5rqD0x0xtQs+tDwpFHOY+7k6X02bkwVJo6RAdb8=";
+ })
+ ];
+
vendorHash = "sha256-jLyjQ+w/QS9uA0pGWF2X6dEfOifcI2gC2sgi1STEzpU=";
nativeBuildInputs = [ installShellFiles ];