depot/third_party/nixpkgs/pkgs/servers/web-apps/selfoss/default.nix

37 lines
760 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchurl, unzip }:
stdenvNoCC.mkDerivation rec {
pname = "selfoss";
version = "2.19";
src = fetchurl {
url = "https://github.com/SSilence/selfoss/releases/download/${version}/selfoss-${version}.zip";
sha256 = "5JxHUOlyMneWPKaZtgLwn5FI4rnyWPzmsUQpSYrw5Pw=";
};
nativeBuildInputs = [
unzip
];
installPhase = ''
runHook preInstall
mkdir "$out"
cp -ra \
.htaccess \
.nginx.conf \
* \
"$out/"
runHook postInstall
'';
meta = with lib; {
description = "Web-based news feed (RSS/Atom) aggregator";
homepage = "https://selfoss.aditu.de";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jtojnar regnat ];
platforms = platforms.all;
};
}