summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohannes Schleifenbaum <johannes@js-webcoding.de>2023-01-04 10:53:28 +0100
committerJohannes Schleifenbaum <johannes@js-webcoding.de>2023-01-04 11:23:10 +0100
commit04b8fc708819af8e324460a0bf9758804f0f8af3 (patch)
treec60579b46258a452cc7b2e52babb92ee0e405272
parentaa371581dd110352b217e214867dd2a83660fa3c (diff)
downloadnixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.tar
nixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.tar.gz
nixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.tar.bz2
nixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.tar.lz
nixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.tar.xz
nixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.tar.zst
nixpkgs-04b8fc708819af8e324460a0bf9758804f0f8af3.zip
libreddit: 0.25.1 -> 0.27.0
-rw-r--r--pkgs/servers/libreddit/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/servers/libreddit/default.nix b/pkgs/servers/libreddit/default.nix
index ba609526015..4dbc9f6a505 100644
--- a/pkgs/servers/libreddit/default.nix
+++ b/pkgs/servers/libreddit/default.nix
@@ -3,21 +3,31 @@
 , nixosTests
 , rustPlatform
 , fetchFromGitHub
+, fetchpatch
 , Security
 }:
 
 rustPlatform.buildRustPackage rec {
   pname = "libreddit";
-  version = "0.25.1";
+  version = "0.27.0";
 
   src = fetchFromGitHub {
     owner = "libreddit";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-/K79EHjqkclyh1AmRaevYcyUD4XSrTfd5zjnpOmBNcE=";
+    hash = "sha256-+sSzYewqN3VjTl+wjgan3yxlFiuCg2rprJDpDktuQHo=";
   };
 
-  cargoSha256 = "sha256-KYuEy5MwgdiHHbDDNyb+NVYyXdvx1tCH7dQdPWCCfQo=";
+  cargoSha256 = "sha256-HhtslN6JV9DUBhuyesciZGGYVz7mvpdyxVps9xAc+Rs=";
+
+  patches = [
+    # https://github.com/libreddit/libreddit/pull/687
+    (fetchpatch {
+      name = "fix-cfg-test.patch";
+      url = "https://github.com/libreddit/libreddit/commit/dff91da8777dc42d38abf8b5d63addbd71fdabff.patch";
+      sha256 = "sha256-6np5gf8cyKotF7KJ19mCtRAF7SxDpNFpQCgdy/XDsng=";
+    })
+  ];
 
   buildInputs = lib.optionals stdenv.isDarwin [
     Security