mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Packages+Optimizations] Use bleeding-edge ffmpeg-full, enable unfree codecs and add optimizations if enabled
This commit is contained in:
parent
8ec15b97a5
commit
abfcde5e8b
2 changed files with 10 additions and 5 deletions
|
|
@ -201,6 +201,11 @@ in
|
|||
recursive = 1;
|
||||
parallelize = generalCfg.cores;
|
||||
} super.optipng;
|
||||
myFFmpeg = optimizePkg {
|
||||
level = "normal";
|
||||
lto = false;
|
||||
recursive = 1;
|
||||
} super.myFFmpeg;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
|||
10
overlays.nix
10
overlays.nix
|
|
@ -88,11 +88,9 @@ in
|
|||
});
|
||||
|
||||
myFFmpeg = let
|
||||
withLto = super.ffmpeg-full.override { enableLto = false; rav1e = self.rav1e; };
|
||||
withTensorflow = withLto.overrideAttrs (old: {
|
||||
CFLAGS = (old.CFLAGS or "") + " -march=${config.aviallon.general.cpuArch}";
|
||||
LDFLAGS = (old.LDFLAGS or "") + " -march=${config.aviallon.general.cpuArch}";
|
||||
buildInputs = (old.buildInputs or []) ++ [ super.libtensorflow-bin ];
|
||||
withUnfree = super.unstable.ffmpeg-full.override { withUnfree = true; };
|
||||
withTensorflow = withUnfree.overrideAttrs (old: {
|
||||
buildInputs = (old.buildInputs or []) ++ [ super.libtensorflow ];
|
||||
configureFlags = (old.configureFlags or []) ++ [ "--enable-libtensorflow" ];
|
||||
});
|
||||
in withTensorflow;
|
||||
|
|
@ -121,6 +119,8 @@ in
|
|||
"unrar" "ark"
|
||||
"chromium-unwrapped" "chrome-widevine-cdm"
|
||||
"ungoogled-chromium" "chromium" # because of widevine
|
||||
|
||||
"ffmpeg-full" # Because of unfree codecs
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue