mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-12 05:31:29 +03:00
Update Nix Flake (#161)
* nix: add support for aarch64-linux * nix: add librsvg to enable svg icons in gtk
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
genSystems = lib.genAttrs [
|
genSystems = lib.genAttrs [
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
@@ -50,6 +51,7 @@
|
|||||||
xorg.libX11
|
xorg.libX11
|
||||||
gtk4
|
gtk4
|
||||||
libadwaita
|
libadwaita
|
||||||
|
librsvg
|
||||||
xorg.libXtst
|
xorg.libXtst
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk_11_0.frameworks.CoreGraphics
|
darwin.apple_sdk_11_0.frameworks.CoreGraphics
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ rustPlatform.buildRustPackage {
|
|||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
cmake
|
cmake
|
||||||
|
makeWrapper
|
||||||
buildPackages.gtk4
|
buildPackages.gtk4
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -36,6 +37,12 @@ rustPlatform.buildRustPackage {
|
|||||||
# Set Environment Variables
|
# Set Environment Variables
|
||||||
RUST_BACKTRACE = "full";
|
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; {
|
meta = with lib; {
|
||||||
description = "Lan Mouse is a mouse and keyboard sharing software";
|
description = "Lan Mouse is a mouse and keyboard sharing software";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user