dart.metadata_god: drop

This commit is contained in:
qzylinra
2025-08-27 05:40:16 +08:00
parent 5a1cf29236
commit cf20b51ab5
3 changed files with 0 additions and 78 deletions
@@ -11,7 +11,6 @@
handy_window = callPackage ./handy-window { };
matrix = callPackage ./matrix { };
media_kit_libs_linux = callPackage ./media_kit_libs_linux { };
metadata_god = callPackage ./metadata_god { };
olm = callPackage ./olm { };
objectbox_flutter_libs = callPackage ./objectbox_flutter_libs { };
pdfrx = callPackage ./pdfrx { };
@@ -1,44 +0,0 @@
{
lib,
stdenv,
fetchzip,
replaceVars,
}:
{ version, src, ... }:
let
inherit (stdenv.hostPlatform) system;
selectSystem =
attrs: attrs.${system} or (throw "metadata_god: ${stdenv.hostPlatform.system} is not supported");
suffix = selectSystem {
x86_64-linux = "linux-x64";
aarch64-linux = "linux-arm64";
};
metadata_god = fetchzip {
url = "https://github.com/KRTirtho/frb_plugins/releases/download/metadata_god-v0.5.3/linux.tar.gz";
hash = "sha256-ZR/q1dF8w4Yab6dRRiS5ZCChVnoecFUrtGiHXGlll9A=";
stripRoot = false;
};
in
stdenv.mkDerivation {
pname = "metadata_god";
inherit version src;
inherit (src) passthru;
patches = [
(replaceVars ./metadata_god.patch {
output_lib = "${metadata_god}/${suffix}/libmetadata_god.so";
})
];
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
meta.sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
}
@@ -1,33 +0,0 @@
--- old/linux/CMakeLists.txt 2024-11-30 12:48:42.346266052 +0000
+++ new/linux/CMakeLists.txt 2024-11-30 12:50:45.495928529 +0000
@@ -9,29 +9,10 @@
set(PROJECT_NAME "metadata_god")
project(${PROJECT_NAME} LANGUAGES CXX)
-# Download the binaries if they are not already present.
-set(LibRoot "${CMAKE_CURRENT_SOURCE_DIR}/${LibraryVersion}")
-set(ArchivePath "${LibRoot}.tar.gz")
-if(NOT EXISTS ${ArchivePath})
- file(DOWNLOAD
- "https://github.com/KRTirtho/metadata_god/releases/download/${LibraryVersion}/other.tar.gz"
- ${ArchivePath}
- TLS_VERIFY ON
- )
-endif()
-
-# Extract the binaries, overriding any already present.
-file(REMOVE_RECURSE ${LibRoot})
-file(MAKE_DIRECTORY ${LibRoot})
-execute_process(
- COMMAND ${CMAKE_COMMAND} -E tar xzf ${ArchivePath}
- WORKING_DIRECTORY ${LibRoot}
-)
-
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
# external build triggered from this build file.
set(metadata_god_bundled_libraries
- "${LibRoot}/${FLUTTER_TARGET_PLATFORM}/libmetadata_god.so"
+ @output_lib@
PARENT_SCOPE
)