summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/headlines
diff options
context:
space:
mode:
authorChuang Zhu <git@chuang.cz>2022-11-15 20:39:58 +0800
committerChuang Zhu <git@chuang.cz>2022-11-15 20:39:58 +0800
commita09bb2d5e50093c7f9db03bac558053db6807596 (patch)
treebfa005f59d33e0362444294bf9ddf93e1a0fdd4f /pkgs/applications/networking/headlines
parentbbf77421ac51a7c93f5f0f760da99e4dbce614fa (diff)
headlines: init at 0.7.2
Diffstat (limited to 'pkgs/applications/networking/headlines')
-rw-r--r--pkgs/applications/networking/headlines/default.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/applications/networking/headlines/default.nix b/pkgs/applications/networking/headlines/default.nix
new file mode 100644
index 000000000000..ed26c6f60de2
--- /dev/null
+++ b/pkgs/applications/networking/headlines/default.nix
@@ -0,0 +1,72 @@
+{ lib
+, stdenv
+, cmake
+, pkg-config
+, libmicrohttpd
+, curl
+, openssl
+, jsoncpp
+, libxml2
+, gst_all_1
+, boost
+, websocketpp
+, libadwaita
+, gtkmm4
+, libsecret
+, fetchFromGitLab
+, makeWrapper
+, xdg-utils
+, youtube-dl
+, ffmpeg
+}:
+
+stdenv.mkDerivation rec {
+ pname = "headlines";
+ version = "0.7.2";
+
+ src = fetchFromGitLab {
+ owner = "caveman250";
+ repo = "Headlines";
+ rev = version;
+ sha256 = "sha256-wamow0UozX5ecKbXWOgsWCerInL4J0gK0+Muf+eoO9k=";
+ };
+
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ makeWrapper
+ ];
+
+ buildInputs = [
+ libmicrohttpd
+ curl
+ openssl
+ jsoncpp
+ libxml2
+ boost
+ websocketpp
+ libadwaita
+ gtkmm4
+ libsecret
+ ] ++ (with gst_all_1; [
+ gstreamer
+ gst-libav
+ gst-plugins-base
+ (gst-plugins-good.override { gtkSupport = true; })
+ gst-plugins-bad
+ ]);
+
+ postFixup = ''
+ wrapProgram "$out/bin/headlines" \
+ --prefix PATH : "${lib.makeBinPath [ xdg-utils youtube-dl ffmpeg ]}" \
+ --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
+ '';
+
+ meta = with lib; {
+ description = "GTK4 / Libadwaita Reddit client written in C++";
+ homepage = "https://gitlab.com/caveman250/Headlines";
+ license = licenses.gpl3Plus;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ chuangzhu ];
+ };
+}