Merge pull request #122022 from ymeister/rss-bridge

rss-bridge: 2020-11-10 -> 2021-04-25
This commit is contained in:
Sandro 2021-05-08 22:54:32 +02:00 committed by GitHub
commit 327bdb6c1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,17 @@
{ config, lib, pkgs, fetchFromGitHub, stdenv, ... }:
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "rss-bridge";
version = "2020-11-10";
version = "2021-04-25";
src = fetchFromGitHub {
owner = "RSS-Bridge";
repo = "rss-bridge";
rev = version;
sha256 = "00cp61lqvhi7b7j0rglsqg3l7cg8s9b8vq098bgvg5dygyi44hyv";
sha256 = "0dkw8xq710q0wclyr003357gk0vgb5pmpcx75k13pv56c3mrg9vm";
};
patchPhase = ''
postPatch = ''
substituteInPlace lib/rssbridge.php \
--replace "define('PATH_CACHE', PATH_ROOT . 'cache/');" "define('PATH_CACHE', getenv('RSSBRIDGE_DATA') . '/cache/');" \
--replace "define('FILE_CONFIG', PATH_ROOT . 'config.ini.php');" "define('FILE_CONFIG', getenv('RSSBRIDGE_DATA') . '/config.ini.php');" \