cosmic-files: use libcosmicAppHook

This commit is contained in:
Heitor Augusto
2025-03-05 21:03:49 -03:00
parent 3364a2d2dd
commit 0cb2021d31
+4 -28
View File
@@ -3,14 +3,9 @@
stdenv,
fetchFromGitHub,
rustPlatform,
makeBinaryWrapper,
cosmic-icons,
just,
pkg-config,
libcosmicAppHook,
glib,
libxkbcommon,
wayland,
xorg,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -34,17 +29,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
nativeBuildInputs = [
just
pkg-config
makeBinaryWrapper
libcosmicAppHook
];
buildInputs = [
glib
libxkbcommon
wayland
];
buildInputs = [ glib ];
dontUseJustBuild = true;
dontUseJustCheck = true;
justFlags = [
"--set"
@@ -55,21 +46,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-files"
];
# LD_LIBRARY_PATH can be removed once tiny-xlib is bumped above 0.2.2
postInstall = ''
wrapProgram "$out/bin/cosmic-files" \
--suffix XDG_DATA_DIRS : "${cosmic-icons}/share" \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
wayland
]
}
'';
meta = {
homepage = "https://github.com/pop-os/cosmic-files";
description = "File Manager for the COSMIC Desktop Environment";