oculante: fix icon, add wayland support (#374016)

This commit is contained in:
Aleksana 2025-02-18 11:13:42 +08:00 committed by GitHub
commit a9d988e385
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,6 @@ rustPlatform.buildRustPackage rec {
libXi
libXrandr
gtk3
libxkbcommon
wayland
]
@ -70,20 +69,28 @@ rustPlatform.buildRustPackage rec {
];
postInstall = ''
install -Dm444 $src/res/icons/icon.png -t $out/share/icons/hicolor/128x128/apps/
install -Dm444 $src/res/icons/icon.png $out/share/icons/hicolor/128x128/apps/oculante.png
install -Dm444 $src/res/oculante.desktop -t $out/share/applications
wrapProgram $out/bin/oculante \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL ]}
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath (
[
libGL
libxkbcommon
]
++ lib.optionals stdenv.hostPlatform.isLinux [ wayland ]
)
}
'';
meta = with lib; {
meta = {
broken = stdenv.hostPlatform.isDarwin;
description = "Minimalistic crossplatform image viewer written in Rust";
homepage = "https://github.com/woelper/oculante";
changelog = "https://github.com/woelper/oculante/blob/${version}/CHANGELOG.md";
license = licenses.mit;
license = lib.licenses.mit;
mainProgram = "oculante";
maintainers = with maintainers; [
maintainers = with lib.maintainers; [
dit7ya
figsoda
];