2021-05-01 19:33:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-11-27 17:43:58 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, sqlite
|
|
|
|
, libsoup
|
2021-01-19 11:13:46 +00:00
|
|
|
, liboauth
|
2019-11-27 17:43:58 +00:00
|
|
|
, gettext
|
|
|
|
, gspell
|
|
|
|
, vala
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-11-30 23:11:47 +00:00
|
|
|
, dconf
|
2019-11-27 17:43:58 +00:00
|
|
|
, gst_all_1
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, glib-networking
|
2020-09-05 14:00:33 +00:00
|
|
|
, librest
|
2019-11-27 17:43:58 +00:00
|
|
|
, python3
|
|
|
|
}:
|
2019-10-01 12:07:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-08 18:53:12 +00:00
|
|
|
version = "1.4.1";
|
2019-10-01 12:07:57 +00:00
|
|
|
pname = "cawbird";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IBBoard";
|
|
|
|
repo = "cawbird";
|
|
|
|
rev = "v${version}";
|
2021-05-08 18:53:12 +00:00
|
|
|
sha256 = "0lmrgcj1ky1vhzynl36k6ba3ws089x4qdrnkjk3lbr334kicx9na";
|
2019-10-01 12:07:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-27 17:43:58 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2019-11-27 17:43:58 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
2019-10-01 12:07:57 +00:00
|
|
|
gobject-introspection # for setup hook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-27 17:43:58 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
sqlite
|
|
|
|
libsoup
|
2021-01-19 11:13:46 +00:00
|
|
|
liboauth
|
2019-11-27 17:43:58 +00:00
|
|
|
gettext
|
2019-11-30 23:11:47 +00:00
|
|
|
dconf
|
2019-11-27 17:43:58 +00:00
|
|
|
gspell
|
|
|
|
glib-networking
|
2020-09-05 14:00:33 +00:00
|
|
|
librest
|
2019-11-27 17:43:58 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
(gst-plugins-good.override {
|
|
|
|
gtkSupport = true;
|
|
|
|
})
|
|
|
|
gst-libav
|
|
|
|
]);
|
2019-10-01 12:07:57 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x data/meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs data/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-05-01 19:33:05 +00:00
|
|
|
# supply Twitter API keys
|
|
|
|
# use default keys supplied by upstream, see https://github.com/IBBoard/cawbird/blob/master/README.md#preparation
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dconsumer_key_base64=VmY5dG9yRFcyWk93MzJEZmhVdEk5Y3NMOA=="
|
|
|
|
"-Dconsumer_secret_base64=MThCRXIxbWRESDQ2Y0podzVtVU13SGUyVGlCRXhPb3BFRHhGYlB6ZkpybG5GdXZaSjI="
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-01 12:07:57 +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.";
|
2019-11-27 17:43:58 +00:00
|
|
|
homepage = "https://ibboard.co.uk/cawbird/";
|
2021-05-01 19:33:05 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2019-10-01 12:07:57 +00:00
|
|
|
platforms = platforms.linux;
|
2021-01-15 05:42:41 +00:00
|
|
|
maintainers = with lib.maintainers; [ jonafato schmittlauch ];
|
2019-10-01 12:07:57 +00:00
|
|
|
};
|
|
|
|
}
|