26 lines
900 B
Nix
26 lines
900 B
Nix
{ config, lib, pkgs, ... }: {
|
|
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??
|
|
] ++ (with pkgs.python3Packages;
|
|
[
|
|
(buildPythonApplication rec {
|
|
pname = "ffpb";
|
|
version = "0.4.1";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-7eVqbLpMHS1sBw2vYS4cTtyVdnnknGtEI8190VlXflk=";
|
|
};
|
|
doCheck = false;
|
|
buildInputs = [ setuptools ];
|
|
propagatedBuildInputs = [ tqdm ];
|
|
})
|
|
]);
|
|
};
|
|
}
|