Skip to content

Commit 3ec50f0

Browse files
committed
add some new deps + comprehensive LD_LIBRARY_PATH to flake
1 parent 881114a commit 3ec50f0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flake.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
vulkan-loader
5454
vulkan-validation-layers
5555
vulkan-headers
56+
glib
57+
gtk3
58+
webkitgtk_4_1
5659
]
5760
++ lib.optionals pkgs.stdenv.isDarwin [
5861
# Additional darwin specific inputs can be set here
@@ -102,7 +105,7 @@
102105
};
103106
in ''
104107
install -Dm644 ${icon} $out/share/icons/hicolor/128x128/apps/Scope.png
105-
wrapProgram $out/bin/scope --prefix LD_LIBRARY_PATH : "${pkgs.vulkan-loader}/lib"
108+
wrapProgram $out/bin/scope --prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath commonArgs.buildInputs}"
106109
'';
107110
});
108111
in {
@@ -176,7 +179,7 @@
176179
# Additional dev-shell environment variables can be set directly
177180
# MY_CUSTOM_DEVELOPMENT_VAR = "something else";
178181
VK_LAYER_PATH = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
179-
LD_LIBRARY_PATH = "${pkgs.vulkan-loader}/lib:$LD_LIBRARY_PATH";
182+
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath commonArgs.buildInputs}";
180183

181184
# Extra inputs can be added here; cargo and rustc are provided by default.
182185
packages = [

0 commit comments

Comments
 (0)