feat: Update the api crate

This commit is contained in:
uttarayan21
2025-11-25 18:48:13 +05:30
parent 77fe7b6bb4
commit ca1fd2e977
9 changed files with 229 additions and 260 deletions

View File

@@ -56,7 +56,7 @@
src = let
filterBySuffix = path: exts: lib.any (ext: lib.hasSuffix ext path) exts;
sourceFilters = path: type: (craneLib.filterCargoSources path type) || filterBySuffix path [".c" ".h" ".hpp" ".cpp" ".cc"];
sourceFilters = path: type: (craneLib.filterCargoSources path type) || filterBySuffix path [".c" ".h" ".hpp" ".cpp" ".cc" "wgsl"];
in
lib.cleanSourceWith {
filter = sourceFilters;
@@ -74,19 +74,24 @@
buildInputs = with pkgs;
[
gst_all_1.gst-editing-services
gst_all_1.gst-libav
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-rs
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-rtsp-server
gst_all_1.gst-plugins-rs
gst_all_1.gstreamer
glib
glib-networking
libsysprof-capture
pcre2
libunwind
elfutils
zstd
openssl
vulkan-loader
glib
]
++ (lib.optionals pkgs.stdenv.isLinux [
gst_all_1.gstreamermm
@@ -159,8 +164,8 @@
default = pkg;
};
devShells = {
default =
devShells = rec {
rust-shell =
pkgs.mkShell.override {
stdenv =
if pkgs.stdenv.isLinux
@@ -168,6 +173,8 @@
else pkgs.clangStdenv;
} (commonArgs
// {
GST_PLUGIN_PATH = "/run/current-system/sw/lib/gstreamer-1.0/";
GIO_EXTRA_MODULES = "${pkgs.glib-networking}/lib/gio/modules";
packages = with pkgs;
[
toolchainWithRustAnalyzer
@@ -188,6 +195,7 @@
mold
]);
});
default = rust-shell;
};
}
)