2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
2024-04-21 15:54:59 +00:00
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2024-04-21 15:54:59 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gobject-introspection
|
2024-04-21 15:54:59 +00:00
|
|
|
, libadwaita
|
|
|
|
, gst_all_1
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "cozy";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.3.0";
|
|
|
|
pyproject = false; # built with meson
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geigi";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "cozy";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-oMgdz2dny0u1XV13aHu5s8/pcAz8z/SAOf4hbCDsdjw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
libadwaita
|
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
|
|
|
distro
|
2020-04-24 23:36:52 +00:00
|
|
|
mutagen
|
|
|
|
peewee
|
2020-10-27 00:29:36 +00:00
|
|
|
pygobject3
|
|
|
|
pytz
|
|
|
|
requests
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postFixup = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "A modern audio book player for Linux";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://cozy.geigi.de/";
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ makefu aleksana ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
mainProgram = "com.github.geigi.cozy";
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|