Merge pull request #301895 from Aleksanaa/cozy

cozy: clean up and misc fixes

authored by Weijia Wang and committed by GitHub 6d2fe60d 35500f5f

+22 -35
+22 -35
pkgs/applications/audio/cozy/default.nix
··· 1 - { lib, fetchFromGitHub 2 - , ninja 3 , meson 4 , pkg-config 5 - , wrapGAppsHook 6 , appstream-glib 7 , desktop-file-utils 8 - , gtk3 9 - , gst_all_1 10 , gobject-introspection 11 , libadwaita 12 - , libdazzle 13 - , python3Packages 14 - , cairo 15 - , gettext 16 - , gnome 17 - , pantheon 18 }: 19 20 python3Packages.buildPythonApplication rec { 21 - 22 - format = "other"; # no setup.py 23 - 24 pname = "cozy"; 25 version = "1.3.0"; 26 27 src = fetchFromGitHub { 28 owner = "geigi"; 29 - repo = pname; 30 rev = version; 31 hash = "sha256-oMgdz2dny0u1XV13aHu5s8/pcAz8z/SAOf4hbCDsdjw"; 32 }; 33 34 nativeBuildInputs = [ 35 - meson ninja pkg-config 36 - wrapGAppsHook 37 appstream-glib 38 desktop-file-utils 39 gobject-introspection 40 ]; 41 42 buildInputs = [ 43 - gtk3 44 - cairo 45 - gettext 46 - gnome.adwaita-icon-theme 47 libadwaita 48 - libdazzle 49 - pantheon.granite 50 ] ++ (with gst_all_1; [ 51 gstreamer 52 gst-plugins-good ··· 56 ]); 57 58 propagatedBuildInputs = with python3Packages; [ 59 - apsw 60 - cairo 61 - dbus-python 62 distro 63 - gst-python 64 - magic 65 mutagen 66 - packaging 67 peewee 68 pygobject3 69 pytz 70 requests 71 ]; 72 73 - postPatch = '' 74 - patchShebangs meson/*.py 75 ''; 76 77 - postInstall = '' 78 ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy 79 ''; 80 81 meta = with lib; { 82 - description = "A modern audio book player for Linux using GTK 3"; 83 homepage = "https://cozy.geigi.de/"; 84 - maintainers = [ maintainers.makefu ]; 85 - license = licenses.gpl3; 86 }; 87 }
··· 1 + { lib 2 + , python3Packages 3 + , fetchFromGitHub 4 , meson 5 + , ninja 6 , pkg-config 7 + , wrapGAppsHook4 8 , appstream-glib 9 , desktop-file-utils 10 , gobject-introspection 11 , libadwaita 12 + , gst_all_1 13 }: 14 15 python3Packages.buildPythonApplication rec { 16 pname = "cozy"; 17 version = "1.3.0"; 18 + pyproject = false; # built with meson 19 20 src = fetchFromGitHub { 21 owner = "geigi"; 22 + repo = "cozy"; 23 rev = version; 24 hash = "sha256-oMgdz2dny0u1XV13aHu5s8/pcAz8z/SAOf4hbCDsdjw"; 25 }; 26 27 nativeBuildInputs = [ 28 + meson 29 + ninja 30 + pkg-config 31 + wrapGAppsHook4 32 appstream-glib 33 desktop-file-utils 34 gobject-introspection 35 ]; 36 37 buildInputs = [ 38 libadwaita 39 ] ++ (with gst_all_1; [ 40 gstreamer 41 gst-plugins-good ··· 45 ]); 46 47 propagatedBuildInputs = with python3Packages; [ 48 distro 49 mutagen 50 peewee 51 pygobject3 52 pytz 53 requests 54 ]; 55 56 + dontWrapGApps = true; 57 + 58 + preFixup = '' 59 + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 60 ''; 61 62 + postFixup = '' 63 ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy 64 ''; 65 66 meta = with lib; { 67 + description = "A modern audio book player for Linux"; 68 homepage = "https://cozy.geigi.de/"; 69 + maintainers = with maintainers; [ makefu aleksana ]; 70 + license = licenses.gpl3Plus; 71 + mainProgram = "com.github.geigi.cozy"; 72 + platforms = platforms.linux; 73 }; 74 }