diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-22 16:11:39 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-22 16:11:39 +0200 |
commit | bccc0e5a4cbaf992ab91f85f284cf82371af945d (patch) | |
tree | e6b95d9d80d81b487b49cb9c121e6baedc4e47a8 | |
parent | Move hosts variable up (diff) | |
download | nixos-config-bccc0e5a4cbaf992ab91f85f284cf82371af945d.tar.gz nixos-config-bccc0e5a4cbaf992ab91f85f284cf82371af945d.tar.bz2 nixos-config-bccc0e5a4cbaf992ab91f85f284cf82371af945d.zip |
Custom packages: anime-downloader: pass pkgs individually
-rw-r--r-- | packages/anime-downloader/default.nix | 12 | ||||
-rw-r--r-- | packages/default.nix | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/anime-downloader/default.nix b/packages/anime-downloader/default.nix index 985e5b4..f6ecd85 100644 --- a/packages/anime-downloader/default.nix +++ b/packages/anime-downloader/default.nix @@ -1,17 +1,17 @@ -{ pkgs, lib }: +{ python39, fetchFromGitHub, nodejs, mpv, lib }: -pkgs.python39.pkgs.buildPythonPackage rec { +python39.pkgs.buildPythonPackage rec { pname = "anime-downloader"; version = "5.0.14"; - src = pkgs.fetchFromGitHub { + src = fetchFromGitHub { owner = "anime-dl"; repo = "anime-downloader"; rev = version; sha256 = "1ai71g8cp2i37p53lm32nl3h8cq7rcxifhnj1z1cfvxbqjvackaj"; }; - propagatedBuildInputs = with pkgs.python39.pkgs; [ + propagatedBuildInputs = with python39.pkgs; [ pySmartDL cfscrape beautifulsoup4 @@ -23,8 +23,8 @@ pkgs.python39.pkgs.buildPythonPackage rec { tabulate pycryptodome - pkgs.nodejs - pkgs.mpv + nodejs + mpv ]; doCheck = false; diff --git a/packages/default.nix b/packages/default.nix index 4866b44..92ca52a 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -4,7 +4,7 @@ final: prev: smart-wallpaper = prev.callPackage ./smart-wallpaper { }; dwmbar = prev.callPackage ./dwmbar { }; trackma = prev.callPackage ./trackma { }; - anime-downloader = prev.callPackage ./anime-downloader { pkgs = prev; }; + anime-downloader = prev.callPackage ./anime-downloader { }; adl = prev.callPackage ./adl { anime-downloader = final.custom.anime-downloader; trackma = final.custom.trackma; }; kindlegen = prev.callPackage ./kindlegen { }; }; |