about summary refs log tree commit diff
path: root/pkgs/by-name/mo
diff options
context:
space:
mode:
authorAleksana2024-06-22 16:32:36 +0800
committerGitHub2024-06-22 16:32:36 +0800
commitb36db2d295476c9f41a32ce3ca2eec65bc2f77f2 (patch)
tree40e6ce2c68228b472f55de450fcb565c310c96ca /pkgs/by-name/mo
parent0f8253bd1b23c0c658fe53a2f9dd9004c500cd12 (diff)
parente88343609710caa504ee5ea98e87b2444bc8f86a (diff)
Merge pull request #321511 from paparodeo/monophony-update
monophony: 2.9.0 -> 2.11.0
Diffstat (limited to 'pkgs/by-name/mo')
-rw-r--r--pkgs/by-name/mo/monophony/package.nix23
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/by-name/mo/monophony/package.nix b/pkgs/by-name/mo/monophony/package.nix
index bf048768b5e8..c32943ff76cf 100644
--- a/pkgs/by-name/mo/monophony/package.nix
+++ b/pkgs/by-name/mo/monophony/package.nix
@@ -11,15 +11,15 @@
 }:
 python3Packages.buildPythonApplication rec {
   pname = "monophony";
-  version = "2.9.0";
-  format = "other";
+  version = "2.11.0";
+  pyproject = false;
 
   sourceRoot = "${src.name}/source";
   src = fetchFromGitLab {
     owner = "zehkira";
     repo = "monophony";
     rev = "v${version}";
-    hash = "sha256-fZ+EQqcHJGOLBwyHZJvML6+SkfFpnt6hb8xHedJ7VSU=";
+    hash = "sha256-OGUj1NNJNerYx/nBtg4g9xMbz6u4YSqKO6HeMNeYpE8=";
   };
 
   pythonPath = with python3Packages; [
@@ -28,8 +28,13 @@ python3Packages.buildPythonApplication rec {
     ytmusicapi
   ];
 
+  build-system = with python3Packages; [
+    pip
+    setuptools
+    wheel
+  ];
+
   nativeBuildInputs = [
-    python3Packages.nuitka
     gobject-introspection
     wrapGAppsHook4
   ];
@@ -44,13 +49,17 @@ python3Packages.buildPythonApplication rec {
     gstreamer
   ]);
 
+  # Makefile only contains `install`
+  dontBuild = true;
+
   installFlags = [ "prefix=$(out)" ];
 
+  dontWrapGApps = true;
+
   preFixup = ''
-    buildPythonPath "$pythonPath"
-    gappsWrapperArgs+=(
-      --prefix PYTHONPATH : "$program_PYTHONPATH"
+    makeWrapperArgs+=(
       --prefix PATH : "${lib.makeBinPath [yt-dlp]}"
+      "''${gappsWrapperArgs[@]}"
     )
   '';