2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub
|
2018-10-02 00:17:42 +02:00
|
|
|
, ninja
|
|
|
|
, meson
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2018-10-02 00:17:42 +02:00
|
|
|
, wrapGAppsHook
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, gst_all_1
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection
|
2021-07-25 13:30:44 +02:00
|
|
|
, libhandy
|
2021-08-29 18:07:51 +02:00
|
|
|
, libdazzle
|
2018-10-02 00:17:42 +02:00
|
|
|
, python3Packages
|
|
|
|
, cairo
|
|
|
|
, gettext
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-07-25 13:30:44 +02:00
|
|
|
, pantheon
|
2018-10-02 00:17:42 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
|
|
|
|
format = "other"; # no setup.py
|
|
|
|
|
2019-01-13 08:46:10 +01:00
|
|
|
pname = "cozy";
|
2022-01-21 06:02:53 +01:00
|
|
|
version = "1.2.0";
|
2018-10-02 00:17:42 +02:00
|
|
|
|
2019-07-06 02:44:55 +02:00
|
|
|
# Temporary fix
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/57029
|
|
|
|
# and https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
|
|
|
|
2018-10-02 00:17:42 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geigi";
|
2019-01-13 08:46:10 +01:00
|
|
|
repo = pname;
|
2018-10-02 00:17:42 +02:00
|
|
|
rev = version;
|
2022-01-21 06:02:53 +01:00
|
|
|
sha256 = "0igqf9b77i13sxlk4ziw549h379hmz1slrb3vvf8irk94gxabsaw";
|
2018-10-02 00:17:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 07:50:56 +01:00
|
|
|
meson ninja pkg-config
|
2018-10-02 00:17:42 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-10-02 00:17:42 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
cairo
|
|
|
|
gettext
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.adwaita-icon-theme
|
2021-08-29 18:07:51 +02:00
|
|
|
libdazzle
|
2021-07-25 13:30:44 +02:00
|
|
|
libhandy
|
|
|
|
pantheon.granite
|
2018-10-02 00:17:42 +02:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gst-plugins-base
|
2021-07-28 21:22:21 +02:00
|
|
|
gst-plugins-bad
|
2018-10-02 00:17:42 +02:00
|
|
|
]);
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2020-10-23 20:02:44 +02:00
|
|
|
apsw
|
|
|
|
cairo
|
2018-10-02 00:17:42 +02:00
|
|
|
dbus-python
|
2020-10-23 20:02:44 +02:00
|
|
|
distro
|
|
|
|
gst-python
|
|
|
|
magic
|
2018-10-02 00:17:42 +02:00
|
|
|
mutagen
|
2020-10-23 20:02:44 +02:00
|
|
|
packaging
|
2018-10-02 00:17:42 +02:00
|
|
|
peewee
|
2020-10-23 20:02:44 +02:00
|
|
|
pygobject3
|
|
|
|
pytz
|
|
|
|
requests
|
2018-10-02 00:17:42 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-07-25 13:30:44 +02:00
|
|
|
patchShebangs meson/*.py
|
2018-10-02 00:17:42 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "A modern audio book player for Linux using GTK 3";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://cozy.geigi.de/";
|
2018-10-02 00:17:42 +02:00
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|