1{
2 lib,
3 stdenvNoCC,
4 fetchurl,
5 unzip,
6}:
7
8stdenvNoCC.mkDerivation rec {
9 pname = "selfoss";
10 version = "2.19";
11
12 src = fetchurl {
13 url = "https://github.com/SSilence/selfoss/releases/download/${version}/selfoss-${version}.zip";
14 sha256 = "5JxHUOlyMneWPKaZtgLwn5FI4rnyWPzmsUQpSYrw5Pw=";
15 };
16
17 nativeBuildInputs = [
18 unzip
19 ];
20
21 installPhase = ''
22 runHook preInstall
23
24 mkdir "$out"
25 cp -ra \
26 .htaccess \
27 .nginx.conf \
28 * \
29 "$out/"
30
31 runHook postInstall
32 '';
33
34 meta = with lib; {
35 description = "Web-based news feed (RSS/Atom) aggregator";
36 homepage = "https://selfoss.aditu.de";
37 license = licenses.gpl3Only;
38 maintainers = with maintainers; [
39 jtojnar
40 regnat
41 ];
42 platforms = platforms.all;
43 };
44}