2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, libmicrohttpd
|
|
|
|
, curl
|
|
|
|
, openssl
|
|
|
|
, jsoncpp
|
|
|
|
, libxml2
|
|
|
|
, gst_all_1
|
|
|
|
, boost
|
|
|
|
, websocketpp
|
|
|
|
, libadwaita
|
|
|
|
, gtkmm4
|
|
|
|
, libsecret
|
|
|
|
, fetchFromGitLab
|
2024-02-29 20:09:43 +00:00
|
|
|
, wrapGAppsHook4
|
2022-12-17 10:02:37 +00:00
|
|
|
, xdg-utils
|
|
|
|
, youtube-dl
|
|
|
|
, ffmpeg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "headlines";
|
|
|
|
version = "0.7.2";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "caveman250";
|
|
|
|
repo = "Headlines";
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-wamow0UozX5ecKbXWOgsWCerInL4J0gK0+Muf+eoO9k=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2024-02-29 20:09:43 +00:00
|
|
|
wrapGAppsHook4
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
]);
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ xdg-utils youtube-dl ffmpeg ]}"
|
|
|
|
)
|
2022-12-17 10:02:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "headlines";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|