Unverified Commit cdd79e81 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

miro: env.RUSTFLAGS -> libcosmicAppHook (#501071)

parents e153f4bd 33beb863
Loading
Loading
Loading
Loading
+2 −16
Original line number Diff line number Diff line
@@ -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 ];