best practices: get rid of with pkgs;

This commit is contained in:
2024-11-09 15:33:03 -06:00
parent ebcab67a6a
commit 120d485f28
33 changed files with 418 additions and 317 deletions

View File

@@ -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
];
};
}