dotfiles/nix/home-manager/modules/cmdline-utils.nix
main da19b8bc35
Add special ffmpeg with lates SVT-AV1
Signed-off-by: main <magic_rb@redalder.org>
2022-04-15 09:51:48 +02:00

40 lines
841 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.magic_rb.packageCollections.cmdline;
ffmpegSpecial = pkgs.ffmpeg-full.override
{ svt-av1 = pkgs.svt-av1.overrideAttrs
(old: rec
{ version = "1.0.0-rc1";
src = pkgs.fetchFromGitHub {
owner = "AOMediaCodec";
repo = "SVT-AV1";
rev = "v${version}";
sha256 = "sha256-iN4ryhoMNlgXWiCup9pNucQKBkmZtC9bj3bsq8l9KYk=";
};
});
};
in
{
options.magic_rb.packageCollections.cmdline = {
enable = mkEnableOption
''
A package collection containing command line programs, specifically zip, unzip, unrar (unfree), git, and htop.
'';
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
zip
unzip
unrar
git
htop
ffmpegSpecial
];
};
}