Skip to content

Commit

Permalink
Merge pull request #321511 from paparodeo/monophony-update
Browse files Browse the repository at this point in the history
monophony: 2.9.0 -> 2.11.0
  • Loading branch information
Aleksanaa authored Jun 22, 2024
2 parents 0f8253b + e883436 commit b36db2d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions pkgs/by-name/mo/monophony/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; [
Expand All @@ -28,8 +28,13 @@ python3Packages.buildPythonApplication rec {
ytmusicapi
];

build-system = with python3Packages; [
pip
setuptools
wheel
];

nativeBuildInputs = [
python3Packages.nuitka
gobject-introspection
wrapGAppsHook4
];
Expand All @@ -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[@]}"
)
'';

Expand Down

0 comments on commit b36db2d

Please sign in to comment.