summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-04-09 15:20:33 +0200
committerGitHub <noreply@github.com>2024-04-09 15:20:33 +0200
commit6d2fe60da7d678762f1dc982dd01955fcfc1c40d (patch)
treeaf0fba9a4e10129d5f47521940af782c7b02d13c
parent35500f5f72c333ed6f88eb119b377bb27c96d458 (diff)
parentc1b2e9f22fb4760e92e9a5b3b9c316d86f127804 (diff)
Merge pull request #301895 from Aleksanaa/cozy
cozy: clean up and misc fixes
-rw-r--r--pkgs/applications/audio/cozy/default.nix57
1 files changed, 22 insertions, 35 deletions
diff --git a/pkgs/applications/audio/cozy/default.nix b/pkgs/applications/audio/cozy/default.nix
index e07217567d34..65cad453f6b7 100644
--- a/pkgs/applications/audio/cozy/default.nix
+++ b/pkgs/applications/audio/cozy/default.nix
@@ -1,52 +1,41 @@
-{ lib, fetchFromGitHub
-, ninja
+{ lib
+, python3Packages
+, fetchFromGitHub
, meson
+, ninja
, pkg-config
-, wrapGAppsHook
+, wrapGAppsHook4
, appstream-glib
, desktop-file-utils
-, gtk3
-, gst_all_1
, gobject-introspection
, libadwaita
-, libdazzle
-, python3Packages
-, cairo
-, gettext
-, gnome
-, pantheon
+, gst_all_1
}:
python3Packages.buildPythonApplication rec {
-
- format = "other"; # no setup.py
-
pname = "cozy";
version = "1.3.0";
+ pyproject = false; # built with meson
src = fetchFromGitHub {
owner = "geigi";
- repo = pname;
+ repo = "cozy";
rev = version;
hash = "sha256-oMgdz2dny0u1XV13aHu5s8/pcAz8z/SAOf4hbCDsdjw";
};
nativeBuildInputs = [
- meson ninja pkg-config
- wrapGAppsHook
+ meson
+ ninja
+ pkg-config
+ wrapGAppsHook4
appstream-glib
desktop-file-utils
gobject-introspection
];
buildInputs = [
- gtk3
- cairo
- gettext
- gnome.adwaita-icon-theme
libadwaita
- libdazzle
- pantheon.granite
] ++ (with gst_all_1; [
gstreamer
gst-plugins-good
@@ -56,32 +45,30 @@ python3Packages.buildPythonApplication rec {
]);
propagatedBuildInputs = with python3Packages; [
- apsw
- cairo
- dbus-python
distro
- gst-python
- magic
mutagen
- packaging
peewee
pygobject3
pytz
requests
];
- postPatch = ''
- patchShebangs meson/*.py
+ dontWrapGApps = true;
+
+ preFixup = ''
+ makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
- postInstall = ''
+ postFixup = ''
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";
+ description = "A modern audio book player for Linux";
homepage = "https://cozy.geigi.de/";
- maintainers = [ maintainers.makefu ];
- license = licenses.gpl3;
+ maintainers = with maintainers; [ makefu aleksana ];
+ license = licenses.gpl3Plus;
+ mainProgram = "com.github.geigi.cozy";
+ platforms = platforms.linux;
};
}