miro: env.RUSTFLAGS -> libcosmicAppHook (#501071)
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
libcosmicAppHook,
|
||||
pkg-config,
|
||||
fontconfig,
|
||||
wayland,
|
||||
libxkbcommon,
|
||||
libglvnd,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
@@ -26,26 +24,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.bindgenHook
|
||||
libcosmicAppHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
wayland
|
||||
fontconfig
|
||||
libxkbcommon
|
||||
libglvnd
|
||||
];
|
||||
|
||||
env.RUSTFLAGS = toString (
|
||||
map (a: "-C link-arg=${a}") [
|
||||
"-Wl,--push-state,--no-as-needed"
|
||||
"-lEGL"
|
||||
"-lwayland-client"
|
||||
"-lxkbcommon"
|
||||
"-Wl,--pop-state"
|
||||
]
|
||||
);
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user