dim: bump nightfall for FFmpeg >= 6 support

I have no idea if this works.
This commit is contained in:
Emily 2024-07-12 16:43:12 +01:00
parent fb40c82929
commit d25171fc8e
3 changed files with 80 additions and 25 deletions

View file

@ -979,7 +979,7 @@ dependencies = [
"tracing-appender", "tracing-appender",
"tracing-subscriber", "tracing-subscriber",
"url", "url",
"uuid 1.5.0", "uuid 1.10.0",
"xmlwriter", "xmlwriter",
"xtra", "xtra",
"zip", "zip",
@ -1079,7 +1079,7 @@ dependencies = [
"tracing", "tracing",
"tracing-appender", "tracing-appender",
"tracing-subscriber", "tracing-subscriber",
"uuid 1.5.0", "uuid 1.10.0",
] ]
[[package]] [[package]]
@ -2049,14 +2049,14 @@ dependencies = [
[[package]] [[package]]
name = "nightfall" name = "nightfall"
version = "0.3.12-rc4" version = "0.3.12-rc4"
source = "git+https://github.com/Dusk-Labs/nightfall?tag=0.3.12-rc4#147ea96146b4cae6f666741020cef0622a90d46c" source = "git+https://github.com/Dusk-Labs/nightfall?rev=878f07edd5d2c71261c5ae02fe3a6db7cda18be7#878f07edd5d2c71261c5ae02fe3a6db7cda18be7"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"cfg-if", "cfg-if",
"err-derive", "err-derive",
"lazy_static", "lazy_static",
"mp4", "mp4",
"nix 0.20.0", "nix 0.27.1",
"ntapi", "ntapi",
"once_cell", "once_cell",
"psutil", "psutil",
@ -2067,24 +2067,12 @@ dependencies = [
"tokio", "tokio",
"tokio-stream", "tokio-stream",
"tracing", "tracing",
"uuid 0.8.2", "uuid 1.10.0",
"winapi", "winapi",
"xtra", "xtra",
"xtra_proc", "xtra_proc",
] ]
[[package]]
name = "nix"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa9b4819da1bc61c0ea48b63b7bc8604064dd43013e7cc325df098d49cd7c18a"
dependencies = [
"bitflags 1.3.2",
"cc",
"cfg-if",
"libc",
]
[[package]] [[package]]
name = "nix" name = "nix"
version = "0.23.2" version = "0.23.2"
@ -2098,6 +2086,17 @@ dependencies = [
"memoffset 0.6.5", "memoffset 0.6.5",
] ]
[[package]]
name = "nix"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
dependencies = [
"bitflags 2.4.1",
"cfg-if",
"libc",
]
[[package]] [[package]]
name = "no-std-compat" name = "no-std-compat"
version = "0.4.1" version = "0.4.1"
@ -2140,9 +2139,9 @@ dependencies = [
[[package]] [[package]]
name = "ntapi" name = "ntapi"
version = "0.3.7" version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4"
dependencies = [ dependencies = [
"winapi", "winapi",
] ]
@ -3505,7 +3504,7 @@ dependencies = [
"tower-layer", "tower-layer",
"tower-service", "tower-service",
"tracing", "tracing",
"uuid 1.5.0", "uuid 1.10.0",
] ]
[[package]] [[package]]
@ -3747,9 +3746,9 @@ dependencies = [
[[package]] [[package]]
name = "uuid" name = "uuid"
version = "1.5.0" version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88ad59a7560b41a70d191093a945f0b87bc1deeda46fb237479708a1d6b6cdfc" checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314"
dependencies = [ dependencies = [
"getrandom", "getrandom",
] ]

View file

@ -0,0 +1,48 @@
diff --git a/dim/Cargo.toml b/dim/Cargo.toml
index b7c8106493...38518ba29d 100644
--- a/dim/Cargo.toml
+++ b/dim/Cargo.toml
@@ -15,7 +15,7 @@
fdlimit = "0.2.1"
# git dependencies
-nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.12-rc4", default-features = false, features = [
+nightfall = { git = "https://github.com/Dusk-Labs/nightfall", rev = "878f07edd5d2c71261c5ae02fe3a6db7cda18be7", default-features = false, features = [
"cuda",
"ssa_transmux",
] }
diff --git a/dim-core/Cargo.toml b/dim-core/Cargo.toml
index b311b7c7af...ffc5d85dbb 100644
--- a/dim-core/Cargo.toml
+++ b/dim-core/Cargo.toml
@@ -11,7 +11,7 @@
[dependencies]
# git dependencies
-nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.12-rc4", default-features = false, features = [
+nightfall = { git = "https://github.com/Dusk-Labs/nightfall", rev = "878f07edd5d2c71261c5ae02fe3a6db7cda18be7", default-features = false, features = [
"cuda",
"ssa_transmux",
] }
@@ -72,7 +72,7 @@
"json",
] }
url = "2.2.2"
-uuid = { version = "1.2.2", features = ["v4"] }
+uuid = { version = "1.6.1", features = ["v4"] }
xmlwriter = "0.1.0"
xtra = { version = "0.5.1", features = ["tokio", "with-tokio-1"] }
diff --git a/dim-web/Cargo.toml b/dim-web/Cargo.toml
index 2da5764d50...4c7574c0b4 100644
--- a/dim-web/Cargo.toml
+++ b/dim-web/Cargo.toml
@@ -14,7 +14,7 @@
dim-events = { path = "../dim-events" }
dim-core = { path = "../dim-core" }
-nightfall = { git = "https://github.com/Dusk-Labs/nightfall", tag = "0.3.12-rc4", default-features = false, features = [
+nightfall = { git = "https://github.com/Dusk-Labs/nightfall", rev = "878f07edd5d2c71261c5ae02fe3a6db7cda18be7", default-features = false, features = [
"cuda",
"ssa_transmux",
] }

View file

@ -6,7 +6,7 @@
buildNpmPackage, buildNpmPackage,
darwin, darwin,
makeWrapper, makeWrapper,
ffmpeg_5, ffmpeg,
git, git,
pkg-config, pkg-config,
sqlite, sqlite,
@ -48,6 +48,10 @@ rustPlatform.buildRustPackage rec {
# the working dir and PATH instead. # the working dir and PATH instead.
./relative-paths.diff ./relative-paths.diff
# Bump the firstparty nightfall dependency to the latest Git
# revision for FFmpeg >= 6 support.
./bump-nightfall.patch
# Upstream has some unused imports that prevent things from compiling... # Upstream has some unused imports that prevent things from compiling...
# Remove for next release. # Remove for next release.
(fetchpatch { (fetchpatch {
@ -57,6 +61,10 @@ rustPlatform.buildRustPackage rec {
}) })
]; ];
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
postConfigure = '' postConfigure = ''
ln -ns $frontend ui/build ln -ns $frontend ui/build
''; '';
@ -82,7 +90,7 @@ rustPlatform.buildRustPackage rec {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"mp4-0.8.2" = "sha256-OtVRtOTU/yoxxoRukpUghpfiEgkKoJZNflMQ3L26Cno="; "mp4-0.8.2" = "sha256-OtVRtOTU/yoxxoRukpUghpfiEgkKoJZNflMQ3L26Cno=";
"nightfall-0.3.12-rc4" = "sha256-DtSXdIDg7XBgzEYzHdzjrHdM1ESKTQdgByeerH5TWwU="; "nightfall-0.3.12-rc4" = "sha256-AbSuLe3ySOla3NB+mlfHRHqHuMqQbrThAaUZ747GErE=";
}; };
}; };
@ -101,7 +109,7 @@ rustPlatform.buildRustPackage rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/dim \ wrapProgram $out/bin/dim \
--prefix PATH : ${lib.makeBinPath [ ffmpeg_5 ]} --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
''; '';
meta = { meta = {