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
51
pkgs/tools/misc/yutto/default.nix
Normal file
51
pkgs/tools/misc/yutto/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, poetry-core
|
||||
, aiohttp
|
||||
, aiofiles
|
||||
, biliass
|
||||
, dicttoxml
|
||||
, colorama
|
||||
, ffmpeg
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "yutto";
|
||||
version = "2.0.0b13";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-XqfbvlaJoRPpwnaUA52KloOsEOIt3YM0cq36DZN6lR8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
aiofiles
|
||||
biliass
|
||||
dicttoxml
|
||||
colorama
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "yutto" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Bilibili downloader";
|
||||
homepage = "https://github.com/yutto-dev/yutto";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ linsui ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue