mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Packages] Add tensorflow and rav1e support to ffmpeg 'full'
This commit is contained in:
parent
5a67e17898
commit
0b706634e8
1 changed files with 9 additions and 1 deletions
10
overlays.nix
10
overlays.nix
|
|
@ -128,7 +128,15 @@ in
|
||||||
|
|
||||||
myFirefox = (import ./packages/firefox.nix { pkgs = self; inherit lib; });
|
myFirefox = (import ./packages/firefox.nix { pkgs = self; inherit lib; });
|
||||||
|
|
||||||
kvdo = config.boot.kernelPackages.callPackage ./packages/kvdo.nix { };
|
ffmpeg-full = 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 ];
|
||||||
|
configureFlags = (old.configureFlags or []) ++ [ "--enable-libtensorflow" ];
|
||||||
|
});
|
||||||
|
in withTensorflow;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue