Skip to content

Commit

Permalink
nix: set GST_PLUGIN_SYSTEM_PATH_1_0 and GIO_MODULE_DIR in shell
Browse files Browse the repository at this point in the history
This fixes `cargo run` on NixOS.

Also, remove the commented-out gst-plugins-ugly from the list, we
apparently don't need it.
  • Loading branch information
flokli committed Jul 17, 2024
1 parent dec7bd2 commit d3662ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion nix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
gst-plugins-base
gst-plugins-good
gst-plugins-bad
# gst-plugins-ugly
gst-libav
]);
GIO_MODULE_DIR = "${pkgs.glib-networking}/lib/gio/modules/";
Expand Down
8 changes: 8 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ rec {
text = ''
export NIX_PATH=nixpkgs=${toString pkgs.path}
export PKG_CONFIG_PATH=${pkgs.lib.makeSearchPathOutput "dev" "lib/pkgconfig" rust_sys_dep_libs}
export GST_PLUGIN_SYSTEM_PATH_1_0=${pkgs.lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (with pkgs.gst_all_1;[
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-libav
])}
export GIO_MODULE_DIR="${pkgs.glib-networking}/lib/gio/modules/"
'';
};

Expand Down

0 comments on commit d3662ff

Please sign in to comment.