lol
1{ stdenvNoCC
2, lib
3, fetchFromGitHub
4, nixosTests
5, php
6, pkgs
7}:
8
9stdenvNoCC.mkDerivation rec {
10 pname = "FreshRSS";
11 version = "1.22.1";
12
13 src = fetchFromGitHub {
14 owner = "FreshRSS";
15 repo = "FreshRSS";
16 rev = version;
17 hash = "sha256-e4+ZkhncgDIWE5NH2eYun2FeWxz1suM//6T6P3V4nQU=";
18 };
19
20 passthru.tests = {
21 inherit (nixosTests) freshrss-sqlite freshrss-pgsql freshrss-http-auth;
22 };
23
24 buildInputs = [ php ];
25
26 # There's nothing to build.
27 dontBuild = true;
28
29 postPatch = ''
30 patchShebangs cli/*.php app/actualize_script.php
31 '';
32
33 installPhase = ''
34 mkdir -p $out
35 cp -vr * $out/
36 '';
37
38 meta = with lib; {
39 description = "FreshRSS is a free, self-hostable RSS aggregator";
40 homepage = "https://www.freshrss.org/";
41 license = licenses.agpl3Plus;
42 maintainers = with maintainers; [ etu stunkymonkey ];
43 };
44}