2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, sqlite
|
|
|
|
, libsoup
|
2021-02-05 17:12:51 +00:00
|
|
|
, liboauth
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
|
|
|
, gspell
|
|
|
|
, vala
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, dconf
|
|
|
|
, gst_all_1
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, glib-networking
|
2020-09-25 04:45:31 +00:00
|
|
|
, librest
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cawbird";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IBBoard";
|
|
|
|
repo = "cawbird";
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-XFN9gfCoQDmYYysg1yrUoPPE0Ow40LttvV5Ltu0DTfI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
|
|
|
gobject-introspection # for setup hook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
sqlite
|
|
|
|
libsoup
|
2021-02-05 17:12:51 +00:00
|
|
|
liboauth
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
dconf
|
|
|
|
gspell
|
|
|
|
glib-networking
|
2020-09-25 04:45:31 +00:00
|
|
|
librest
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
(gst-plugins-good.override {
|
|
|
|
gtkSupport = true;
|
|
|
|
})
|
|
|
|
gst-libav
|
|
|
|
]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x data/meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs data/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# supply Twitter API keys
|
2021-10-04 12:37:57 +00:00
|
|
|
# use keys supplied by @SuperSandro2000, see https://github.com/IBBoard/cawbird/blob/master/README.md#preparation
|
2021-05-20 23:08:51 +00:00
|
|
|
mesonFlags = [
|
2021-10-04 12:37:57 +00:00
|
|
|
"-Dconsumer_key_base64=YnJJNm01SE9PbEkzM3pWenZObVhVSHdlTg=="
|
|
|
|
"-Dconsumer_secret_base64=YUc1SkcyYzhsenlKT2VOWWhVSXlJMERDaFh0WEswUG9oTEp4TzhZNEdJb1hXN0hhYlY="
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Native GTK Twitter client for the Linux desktop";
|
|
|
|
longDescription = "Cawbird is a modern, easy and fun Twitter client. Fork of the discontinued Corebird.";
|
|
|
|
homepage = "https://ibboard.co.uk/cawbird/";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-10-04 12:37:57 +00:00
|
|
|
maintainers = with lib.maintainers; [ jonafato schmittlauch SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|