oculante: don't depend on cargoDeps internal directory naming
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user