From c8bba78b565e6e1730e775dbd2ec80a79aa6ec54 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Mon, 2 Mar 2026 13:28:16 -0800 Subject: [PATCH] Fix nix flake: clean up GST_PLUGIN_PATH, modernize devShell, split build inputs - Remove makeLibraryPath from GST_PLUGIN_PATH_1_0 (generic lib dirs don't contain GStreamer plugins; gstreamerSearch already covers all packages) - Use devShells.default instead of legacy devShell attribute - Move libraries from nativeBuildInputs to buildInputs (only pkg-config is a build tool; glib/gstreamer are link-time dependencies) Co-Authored-By: Claude Opus 4.6 --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 78f08c0..b21770d 100644 --- a/flake.nix +++ b/flake.nix @@ -52,9 +52,9 @@ gst_all_1.gstreamer ]; - gstPluginPath = nixpkgs.lib.makeSearchPath "lib/gstreamer-1.0" gstreamerSearch + ":" + nixpkgs.lib.makeLibraryPath gstreamerLib; + gstPluginPath = nixpkgs.lib.makeSearchPath "lib/gstreamer-1.0" gstreamerSearch; in { - devShell = pkgs.mkShell { + devShells.default = pkgs.mkShell { packages = shell-deps; env = { @@ -75,6 +75,8 @@ src = craneLib.cleanCargoSource ./.; nativeBuildInputs = with pkgs; [ pkg-config + ]; + buildInputs = with pkgs; [ glib glib.dev gst_all_1.gstreamer.dev