90e673b1b8
Prior to this patch, FreshRSS fails to load with an initial `authType = "none"` setting, instead providing an error: "Error during context user init!" To fix this, this patch changes the freshrss-config service to setup the initial `defaultUser` when `authType = "none"` is configured.
45 lines
920 B
Nix
45 lines
920 B
Nix
{ stdenvNoCC
|
|
, lib
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
, php
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "FreshRSS";
|
|
version = "1.23.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreshRSS";
|
|
repo = "FreshRSS";
|
|
rev = version;
|
|
hash = "sha256-uidTsL8TREZ/qcqO/J+6hguP6Dr6J+995WNWCJCduBw=";
|
|
};
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) freshrss-sqlite freshrss-pgsql freshrss-http-auth freshrss-none-auth;
|
|
};
|
|
|
|
buildInputs = [ php ];
|
|
|
|
# There's nothing to build.
|
|
dontBuild = true;
|
|
|
|
postPatch = ''
|
|
patchShebangs cli/*.php app/actualize_script.php
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -vr * $out/
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "FreshRSS is a free, self-hostable RSS aggregator";
|
|
homepage = "https://www.freshrss.org/";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ etu stunkymonkey ];
|
|
};
|
|
}
|