cosmic-panel: use libcosmicAppHook

This commit is contained in:
Heitor Augusto
2025-03-21 17:19:00 -03:00
parent 5cee72e10c
commit e6918c79f5
+2 -20
View File
@@ -3,11 +3,8 @@
stdenv,
rustPlatform,
fetchFromGitHub,
libcosmicAppHook,
just,
pkg-config,
libglvnd,
libxkbcommon,
wayland,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -26,13 +23,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
nativeBuildInputs = [
just
pkg-config
];
buildInputs = [
libglvnd
libxkbcommon
wayland
libcosmicAppHook
];
dontUseJustBuild = true;
@@ -47,15 +38,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-panel"
];
# Force linking to libEGL, which is always dlopen()ed.
"CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_RUSTFLAGS" =
map (a: "-C link-arg=${a}")
[
"-Wl,--push-state,--no-as-needed"
"-lEGL"
"-Wl,--pop-state"
];
meta = {
homepage = "https://github.com/pop-os/cosmic-panel";
description = "Panel for the COSMIC Desktop Environment";