uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
56
pkgs/tools/misc/ytmdl/default.nix
Normal file
56
pkgs/tools/misc/ytmdl/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, python3Packages
|
||||
, yt-dlp
|
||||
, ffmpeg
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "ytmdl";
|
||||
version = "2022.03.16";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname;
|
||||
version = builtins.replaceStrings [ ".0" ] [ "." ] version;
|
||||
sha256 = "sha256-2lEOgwSi4fAVK+gJXvjWQDBWIb1cODFmUiq0FUfpyXA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "bs4" "beautifulsoup4" \
|
||||
--replace "/etc/bash_completion.d" "share/bash-completion/completions" \
|
||||
--replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
ffmpeg-python
|
||||
musicbrainzngs
|
||||
rich
|
||||
simber
|
||||
pydes
|
||||
youtube-search-python
|
||||
unidecode
|
||||
pyxdg
|
||||
downloader-cli
|
||||
beautifulsoup4
|
||||
itunespy
|
||||
mutagen
|
||||
pysocks
|
||||
yt-dlp
|
||||
ytmusicapi
|
||||
spotipy
|
||||
];
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--prefix" "PATH" ":" (lib.makeBinPath [ ffmpeg ])
|
||||
];
|
||||
|
||||
# This application has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/deepjyoti30/ytmdl";
|
||||
description = "YouTube Music Downloader";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue