2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, ninja
|
|
|
|
, meson
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, gst_all_1
|
|
|
|
, gobject-introspection
|
2021-08-08 23:34:03 +00:00
|
|
|
, libhandy
|
2021-09-18 10:52:07 +00:00
|
|
|
, libdazzle
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3Packages
|
|
|
|
, cairo
|
|
|
|
, gettext
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2021-08-08 23:34:03 +00:00
|
|
|
, pantheon
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
|
|
|
|
format = "other"; # no setup.py
|
|
|
|
|
|
|
|
pname = "cozy";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "1.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geigi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-cRqfLFLvje8lxUZ4S83UAFyYUX0vj1ZgLG0Y6gpCfmI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
meson ninja pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
cairo
|
|
|
|
gettext
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2021-09-18 10:52:07 +00:00
|
|
|
libdazzle
|
2021-08-08 23:34:03 +00:00
|
|
|
libhandy
|
|
|
|
pantheon.granite
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gst-plugins-base
|
2021-09-18 10:52:07 +00:00
|
|
|
gst-plugins-bad
|
2020-04-24 23:36:52 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2020-10-27 00:29:36 +00:00
|
|
|
apsw
|
|
|
|
cairo
|
2020-04-24 23:36:52 +00:00
|
|
|
dbus-python
|
2020-10-27 00:29:36 +00:00
|
|
|
distro
|
|
|
|
gst-python
|
|
|
|
magic
|
2020-04-24 23:36:52 +00:00
|
|
|
mutagen
|
2020-10-27 00:29:36 +00:00
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
peewee
|
2020-10-27 00:29:36 +00:00
|
|
|
pygobject3
|
|
|
|
pytz
|
|
|
|
requests
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-08-08 23:34:03 +00:00
|
|
|
patchShebangs meson/*.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A modern audio book player for Linux using GTK 3";
|
|
|
|
homepage = "https://cozy.geigi.de/";
|
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|