oculante: don't depend on cargoDeps internal directory naming

This commit is contained in:
TomaSajt
2026-06-08 02:05:45 +02:00
parent 2bb588777a
commit 8749dbcdaa
2 changed files with 7 additions and 13 deletions
@@ -1,5 +1,5 @@
--- a/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
+++ b/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
--- a/vendor/build/cmake/aom_optimization.cmake
+++ b/vendor/build/cmake/aom_optimization.cmake
@@ -212,7 +212,7 @@ endfunction()
# Currently checks only for presence of required object formats and support for
# the -Ox argument (multipass optimization).
+5 -11
View File
@@ -67,17 +67,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
"--skip=thumbnails::test_thumbs" # broken as of v0.9.2
];
patches = [
# The below patch is needed to fix this build, until the upstream dependency (libavif-rs) fixes the problem.
# The explicit `patchFlags` can also be removed when this patch becomes obsolete.
# <https://github.com/njaard/libavif-rs/issues/122>
./libaom-sys-0.17.2+libaom.3.11.0-cmake-nasm-fix.patch
];
patchFlags = [
"-p1"
"--directory=../${finalAttrs.pname}-${finalAttrs.version}-vendor/source-registry-0"
];
# The below patch is needed to fix this build, until the upstream dependency (libavif-rs) fixes the problem.
# <https://github.com/njaard/libavif-rs/issues/122>
postPatch = ''
patch -p1 -d "$cargoDepsCopy"/*/libaom-sys-0.17.2+libaom.3.11.0 -i ${./libaom-sys-0.17.2+libaom.3.11.0-cmake-nasm-fix.patch}
'';
postInstall = ''
install -Dm444 $src/res/icons/icon.png $out/share/icons/hicolor/128x128/apps/oculante.png