dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ stdenvNoCC
|
|
, lib
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
, php
|
|
, pkgs
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "FreshRSS";
|
|
version = "1.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreshRSS";
|
|
repo = "FreshRSS";
|
|
rev = version;
|
|
hash = "sha256-0+fMZ5ps0CkBbS+fcxlYrrkQi28tmrKTyl3kPuofqyI=";
|
|
};
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) freshrss-sqlite freshrss-pgsql;
|
|
};
|
|
|
|
buildInputs = [ php ];
|
|
|
|
# There's nothing to build.
|
|
dontBuild = true;
|
|
|
|
# the data folder is no in this package and thereby declared by an env-var
|
|
overrideConfig = pkgs.writeText "constants.local.php" ''
|
|
<?php
|
|
define('DATA_PATH', getenv('FRESHRSS_DATA_PATH'));
|
|
'';
|
|
|
|
postPatch = ''
|
|
patchShebangs cli/*.php app/actualize_script.php
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -vr * $out/
|
|
|
|
cp $overrideConfig $out/constants.local.php
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|