2021-01-11 10:54:33 +03:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-06-05 21:55:46 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "tt-rss";
|
2021-07-25 22:40:33 +03:00
|
|
|
year = "21";
|
|
|
|
month = "06";
|
|
|
|
day = "21";
|
|
|
|
version = "20${year}-${month}-${day}";
|
2021-06-25 23:34:32 +03:00
|
|
|
rev = "cd26dbe64c9b14418f0b2d826a38a35c6bf8a270";
|
2016-06-05 21:55:46 +03:00
|
|
|
|
2018-01-05 16:41:41 +03:00
|
|
|
src = fetchurl {
|
2021-01-30 13:33:15 +03:00
|
|
|
url = "https://git.tt-rss.org/fox/tt-rss/archive/${rev}.tar.gz";
|
2021-06-25 23:34:32 +03:00
|
|
|
sha256 = "1dpmzi7hknv5rk2g1iw13r8zcxcwrhkd5hhf292ml0dw3cwki0gm";
|
2016-06-05 21:55:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-07-25 22:40:33 +03:00
|
|
|
runHook preInstall
|
|
|
|
|
2016-06-05 21:55:46 +03:00
|
|
|
mkdir $out
|
|
|
|
cp -ra * $out/
|
2021-07-25 22:40:33 +03:00
|
|
|
|
|
|
|
# see the code of Config::get_version(). you can check that the version in
|
|
|
|
# the footer of the preferences pages is not UNKNOWN
|
|
|
|
echo "${year}.${month}" > $out/version_static.txt
|
|
|
|
|
|
|
|
runHook postInstall
|
2016-06-05 21:55:46 +03:00
|
|
|
'';
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2016-06-05 21:55:46 +03:00
|
|
|
description = "Web-based news feed (RSS/Atom) aggregator";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://tt-rss.org";
|
2018-01-05 16:41:41 +03:00
|
|
|
maintainers = with maintainers; [ globin zohl ];
|
2016-06-05 21:55:46 +03:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|