depot/third_party/nixpkgs/pkgs/servers/web-apps/freshrss/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
920 B
Nix

{ stdenvNoCC
, lib
, fetchFromGitHub
, nixosTests
, php
}:
stdenvNoCC.mkDerivation rec {
pname = "FreshRSS";
version = "1.24.1";
src = fetchFromGitHub {
owner = "FreshRSS";
repo = "FreshRSS";
rev = version;
hash = "sha256-AAOON1RdbG6JSnCc123jmIlIXHOE1PE49BV4hcASO/s=";
};
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 ];
};
}