best practices: get rid of with pkgs;
This commit is contained in:
@@ -8,14 +8,16 @@
|
||||
options.my.shell.multimedia.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.shell.multimedia.enable {
|
||||
users.users.jawz.packages =
|
||||
(with pkgs; [
|
||||
gallery-dl # similar to yt-dlp but for most image gallery websites
|
||||
yt-dlp # downloads videos from most video websites
|
||||
ffmpeg # not ffmpreg, the coolest video conversion tool!
|
||||
imagemagick # photoshop what??
|
||||
])
|
||||
++ [
|
||||
(pkgs.python3Packages.buildPythonApplication (
|
||||
let
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
gallery-dl # similar to yt-dlp but for most image gallery websites
|
||||
yt-dlp # downloads videos from most video websites
|
||||
ffmpeg # not ffmpreg, the coolest video conversion tool!
|
||||
imagemagick # photoshop what??
|
||||
;
|
||||
};
|
||||
ffpb = pkgs.python3Packages.buildPythonApplication (
|
||||
let
|
||||
pname = "ffpb";
|
||||
version = "0.4.1";
|
||||
@@ -29,7 +31,11 @@
|
||||
buildInputs = [ pkgs.python3Packages.setuptools ];
|
||||
propagatedBuildInputs = [ pkgs.python3Packages.tqdm ];
|
||||
}
|
||||
))
|
||||
);
|
||||
in
|
||||
packages
|
||||
++ [
|
||||
ffpb
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user