cosmic-edit: Remove wrapped LD_LIBRARY_PATH and prefer --substitute-fail (#378731)

This commit is contained in:
rewine
2025-02-05 00:38:05 +08:00
committed by GitHub
+2 -13
View File
@@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec {
env.VERGEN_GIT_SHA = src.rev;
postPatch = ''
substituteInPlace justfile --replace '#!/usr/bin/env' "#!$(command -v env)"
substituteInPlace justfile --replace-fail '#!/usr/bin/env' "#!$(command -v env)"
'';
nativeBuildInputs = [
@@ -79,20 +79,9 @@ rustPlatform.buildRustPackage rec {
"-Wl,--pop-state"
];
# LD_LIBRARY_PATH can be removed once tiny-xlib is bumped above 0.2.2
postInstall = ''
wrapProgram "$out/bin/cosmic-edit" \
--suffix XDG_DATA_DIRS : "${cosmic-icons}/share" \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
xorg.libX11
xorg.libXcursor
xorg.libXi
vulkan-loader
libxkbcommon
wayland
]
}
--suffix XDG_DATA_DIRS : "${cosmic-icons}/share"
'';
meta = with lib; {