83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
87 lines
1.4 KiB
Nix
87 lines
1.4 KiB
Nix
{ lib, fetchFromGitHub
|
|
, ninja
|
|
, meson
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, gtk3
|
|
, gst_all_1
|
|
, gobject-introspection
|
|
, libhandy
|
|
, libdazzle
|
|
, python3Packages
|
|
, cairo
|
|
, gettext
|
|
, gnome
|
|
, pantheon
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
format = "other"; # no setup.py
|
|
|
|
pname = "cozy";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geigi";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-cRqfLFLvje8lxUZ4S83UAFyYUX0vj1ZgLG0Y6gpCfmI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson ninja pkg-config
|
|
wrapGAppsHook
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
cairo
|
|
gettext
|
|
gnome.adwaita-icon-theme
|
|
libdazzle
|
|
libhandy
|
|
pantheon.granite
|
|
] ++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
]);
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
apsw
|
|
cairo
|
|
dbus-python
|
|
distro
|
|
gst-python
|
|
magic
|
|
mutagen
|
|
packaging
|
|
peewee
|
|
pygobject3
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs meson/*.py
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A modern audio book player for Linux using GTK 3";
|
|
homepage = "https://cozy.geigi.de/";
|
|
maintainers = [ maintainers.makefu ];
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|