@@ -1,9 +1,10 @@
1−{ lib, fetchFromGitHub, buildPythonApplication, ffmpeg, ffmpeg-python, musicbrainzngs, rich, simber
2−, pydes, youtube-search, unidecode, pyxdg, downloader-cli, beautifulsoup4, itunespy, mutagen, pysocks
3−, youtube-dl, ytmusicapi
1+{ lib
2+, fetchFromGitHub
3+, python3
4+, ffmpeg
45}:
56
6−buildPythonApplication rec {
7+python3.pkgs.buildPythonApplication rec {
78 pname = "ytmdl";
89 version = "2021.06.26";
910
@@ -20,8 +21,7 @@ buildPythonApplication rec {
2021 '';
2122
2223
23− propagatedBuildInputs = [
24− ffmpeg
24+ propagatedBuildInputs = with python3.pkgs; [
2525 ffmpeg-python
2626 musicbrainzngs
2727 rich
@@ -39,6 +39,10 @@ buildPythonApplication rec {
3939 ytmusicapi
4040 ];
4141
42+ makeWrapperArgs = [
43+ "--prefix" "PATH" ":" (lib.makeBinPath [ ffmpeg ])
44+ ];
45+
4246 # This application has no tests
4347 doCheck = false;
4448
@@ -46,7 +50,6 @@ buildPythonApplication rec {
4650 homepage = "https://github.com/deepjyoti30/ytmdl";
4751 description = "YouTube Music Downloader";
4852 license = licenses.mit;
49− platforms = platforms.all;
5053 maintainers = with maintainers; [ j0hax ];
5154 };
5255}