about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/tt-rss/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/tt-rss/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/tt-rss/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/tt-rss/default.nix b/nixpkgs/pkgs/servers/tt-rss/default.nix
new file mode 100644
index 000000000000..842fbb7015b4
--- /dev/null
+++ b/nixpkgs/pkgs/servers/tt-rss/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchgit }:
+
+stdenv.mkDerivation rec {
+  pname = "tt-rss";
+  version = "unstable-2023-04-13";
+
+  src = fetchgit {
+    url = "https://git.tt-rss.org/fox/tt-rss.git";
+    rev = "0578bf802571781a0a7e3debbbec66437a7d28b4";
+    hash = "sha256-j6R1QoH8SzUtyI3rGE6rHriboAfApAo/Guw8WbJ7LqU=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir $out
+    cp -ra * $out/
+
+    # see the code of Config::get_version(). you can check that the version in
+    # the footer of the preferences pages is not UNKNOWN
+    echo "23.04" > $out/version_static.txt
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Web-based news feed (RSS/Atom) aggregator";
+    license = licenses.gpl2Plus;
+    homepage = "https://tt-rss.org";
+    maintainers = with maintainers; [ globin zohl ];
+    platforms = platforms.all;
+  };
+}