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