Update Nix Flake (#161)

* nix: add support for aarch64-linux

* nix: add librsvg to enable svg icons in gtk
This commit is contained in:
Hannes Schulze
2024-07-16 14:59:36 +02:00
committed by GitHub
parent 84696760f0
commit 55bdf1e63e
2 changed files with 9 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = with pkgs; [
pkg-config
cmake
makeWrapper
buildPackages.gtk4
];
@@ -36,6 +37,12 @@ rustPlatform.buildRustPackage {
# Set Environment Variables
RUST_BACKTRACE = "full";
# Needed to enable support for SVG icons in GTK
postInstall = ''
wrapProgram "$out/bin/lan-mouse" \
--set GDK_PIXBUF_MODULE_FILE ${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
'';
meta = with lib; {
description = "Lan Mouse is a mouse and keyboard sharing software";
longDescription = ''