Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
php,
|
|
writeText,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "FreshRSS";
|
|
version = "1.27.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreshRSS";
|
|
repo = "FreshRSS";
|
|
rev = version;
|
|
hash = "sha256-EpszwgYzobRA7LohtJJtgTefFAEmCXvcP3ilfsu+obo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs cli/*.php app/actualize_script.php
|
|
'';
|
|
|
|
# THIRDPARTY_EXTENSIONS_PATH can only be set by config, but should be read from an env-var.
|
|
overrideConfig = writeText "constants.local.php" ''
|
|
<?php
|
|
$thirdpartyExtensionsPath = getenv('THIRDPARTY_EXTENSIONS_PATH');
|
|
if (is_string($thirdpartyExtensionsPath) && $thirdpartyExtensionsPath !== "") {
|
|
define('THIRDPARTY_EXTENSIONS_PATH', $thirdpartyExtensionsPath . '/extensions');
|
|
}
|
|
'';
|
|
|
|
buildInputs = [ php ];
|
|
|
|
# There's nothing to build.
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -vr * $out/
|
|
cp $overrideConfig $out/constants.local.php
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) freshrss;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "FreshRSS is a free, self-hostable RSS aggregator";
|
|
homepage = "https://www.freshrss.org/";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [
|
|
stunkymonkey
|
|
];
|
|
};
|
|
}
|