diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-08-18 05:00:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 05:00:41 +0200 |
commit | 7db9fd1dbca2007a36412fb184be7bc26eb685fc (patch) | |
tree | 28d9002bb3b07d09434739838a89147cfa4f2ef4 /pkgs/servers/web-apps | |
parent | 162864341d89434fb74e82bd43efa17ca915241b (diff) | |
parent | 9aaf34bdb8d5d77ffee1f3ee2db8caabdd7a8bb6 (diff) |
Merge pull request #81467 from dawidsowa/rss-bridge
rss-bridge: init at 2020-02-26
Diffstat (limited to 'pkgs/servers/web-apps')
-rw-r--r-- | pkgs/servers/web-apps/rss-bridge/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/servers/web-apps/rss-bridge/default.nix b/pkgs/servers/web-apps/rss-bridge/default.nix new file mode 100644 index 0000000000000..432f595640605 --- /dev/null +++ b/pkgs/servers/web-apps/rss-bridge/default.nix @@ -0,0 +1,33 @@ +{ config, lib, pkgs, fetchFromGitHub, stdenv, ... }: + +stdenv.mkDerivation rec { + pname = "rss-bridge"; + version = "2020-02-26"; + + src = fetchFromGitHub { + owner = "RSS-Bridge"; + repo = "rss-bridge"; + rev = "${version}"; + sha256 = "075k4bylx9308d083ry5a9q4629ccnrnndqqdqp1g42rzlqrw79q"; + }; + + patchPhase = '' + 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');" \ + --replace "define('WHITELIST', PATH_ROOT . 'whitelist.txt');" "define('WHITELIST', getenv('RSSBRIDGE_DATA') . '/whitelist.txt');" + ''; + + installPhase = '' + mkdir $out/ + cp -R ./* $out + ''; + + meta = with lib; { + description = "The RSS feed for websites missing it"; + homepage = "https://github.com/RSS-Bridge/rss-bridge"; + license = licenses.unlicense; + maintainers = with maintainers; [ dawidsowa ]; + platforms = platforms.all; + }; +} |