depot/third_party/nixpkgs/pkgs/servers/web-apps/selfoss/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

36 lines
760 B
Nix

{ 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;
};
}