Update Nix package definitions to include webcomix and enhance overlays. Refactor download.nix to utilize buildPythonApplication and streamline dependencies, ensuring proper integration of new packages.
This commit is contained in:
parent
d1f011ba1f
commit
cd60c3ad69
13
flake.nix
13
flake.nix
@ -11,6 +11,7 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = [ inputs.self.overlays.default ];
|
||||||
};
|
};
|
||||||
generatePackages =
|
generatePackages =
|
||||||
args:
|
args:
|
||||||
@ -29,15 +30,11 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
overlays.default = _final: prev: {
|
overlays.default = _final: prev: {
|
||||||
scrapy = prev.scrapy.overrideAttrs (_old: rec {
|
python3Packages = prev.python3Packages.override {
|
||||||
version = "2.11.2";
|
overrides = pyself: pysuper: {
|
||||||
src = prev.fetchFromGitHub {
|
webcomix = prev.python3Packages.callPackage ./pkgs_pr/webcomix.nix { };
|
||||||
owner = "scrapy";
|
|
||||||
repo = "scrapy";
|
|
||||||
tag = version;
|
|
||||||
hash = "sha256-EaO1kQ3VSTwEW+r0kSKycOxHNTPwwCVjch1ZBrTU0qQ=";
|
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
packages.x86_64-linux =
|
packages.x86_64-linux =
|
||||||
let
|
let
|
||||||
|
|||||||
@ -1,14 +1,19 @@
|
|||||||
{
|
{
|
||||||
python3Packages,
|
buildPythonApplication,
|
||||||
|
setuptools,
|
||||||
|
pyyaml,
|
||||||
|
types-pyyaml,
|
||||||
|
yt-dlp,
|
||||||
gallery-dl,
|
gallery-dl,
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
|
webcomix,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "download";
|
pname = "download";
|
||||||
version = "2.6";
|
version = "2.6";
|
||||||
in
|
in
|
||||||
python3Packages.buildPythonApplication {
|
buildPythonApplication {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
@ -18,18 +23,14 @@ python3Packages.buildPythonApplication {
|
|||||||
|
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
build-system = [ python3Packages.setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
ffmpeg
|
ffmpeg
|
||||||
gallery-dl
|
gallery-dl
|
||||||
# (callPackage ../pkgs_pr/webcomix.nix { })
|
pyyaml
|
||||||
]
|
types-pyyaml
|
||||||
++ builtins.attrValues {
|
yt-dlp
|
||||||
inherit (python3Packages)
|
webcomix
|
||||||
pyyaml
|
];
|
||||||
types-pyyaml
|
|
||||||
yt-dlp
|
|
||||||
;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user