about summary refs log tree commit diff
path: root/pkgs/servers/web-apps/selfoss/default.nix
blob: 4ed9d96510c844da464819b6a5d1d760feede2c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  name = "selfoss-${version}";
  version = "2.18";

  src = fetchurl {
    url = "https://github.com/SSilence/selfoss/releases/download/${version}/${name}.zip";
    sha256 = "1vd699r1kjc34n8avggckx2b0daj5rmgrj997sggjw2inaq4cg8b";
  };

  sourceRoot = ".";
  nativeBuildInputs = [ unzip ];

  installPhase = ''
    mkdir $out
    cp -ra * $out/
  '';

  meta = with stdenv.lib; {
    description = "Web-based news feed (RSS/Atom) aggregator";
    license = licenses.gpl3;
    homepage = http://http://selfoss.aditu.de/;
    platforms = platforms.all;
    maintainers = [ maintainers.regnat ];
  };
}