blob: 0d1d2f3977ceebb388c0ec33e18f19d7fb4876ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ inputs }:
self: super: {
ffmpeg_my =
with super;
with builtins;
(ffmpeg_6-full.override {
libaom = self.libaom_my;
dav1d = self.dav1d_my;
libva = self.libva_my;
libplacebo = self.libplacebo_my;
# vulkan-headers = nixpkgsmaster.vulkan-headers;
# vulkan-loader = nixpkgsmaster.vulkan-loader;
# stdenv = llvmPackages_15.stdenv;
# withLTO = true;
withUnfree = true;
withCuda = false;
withCudaLLVM = false;
withNvdec = false;
withNvenc = false;
withVdpau = false;
nv-codec-headers = false;
withMfx = false;
withBluray = true;
withFribidi = true;
# withLibplacebo = false;
withFreetype = true;
withFontconfig = true;
withSvg = true;
withFullDeps = true;
withShaderc = false;
withAmf = false;
withOpencl = false;
# withVulkan = false;
# opencl-headers = nixpkgsmaster.opencl-headers;
# vid-stab = vid-stab.override{stdenv = llvmPackages_15.stdenv;};
# stdenv = super.ccacheStdenv;
}).overrideAttrs
(oldAttrs: rec {
version = "vpl-git";
src = fetchGit {
url = "https://git.ffmpeg.org/ffmpeg.git";
ref = "master";
# rev = "5fea5e3e11d6ff425db48f44489916399822aece";
rev = "9ad6dca28ccbe989f615fb10626b22236b06df59";
allRefs = true;
};
configureFlags =
(lib.lists.remove "--enable-postproc" (
lib.lists.remove "--enable-avresample" (
lib.lists.remove "--disable-avresample" oldAttrs.configureFlags
)
))
++ [
"--enable-libvpl"
"--disable-hardcoded-tables"
"--enable-lto=thin"
];
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ nasm ];
buildInputs = oldAttrs.buildInputs ++ [
self.libvpl
shaderc
lcevcdec
];
patches = [ ];
postPatch = "";
doCheck = false;
});
}
|