added avahi

This commit is contained in:
voidarclabs
2026-01-22 11:03:27 +00:00
parent 2387d4e04f
commit ea3a9df799
2 changed files with 62 additions and 55 deletions

View File

@@ -213,6 +213,7 @@
services.upower.enable = true;
services.openssh.enable = true;
services.elephant.enable = true;
services.avahi.enable = true;
# Fonts
fonts.packages = with pkgs; [

View File

@@ -8,6 +8,7 @@ let
modernLibs = with pkgs; [
alsa-lib
freetype
avahi
libglvnd
curl
SDL2
@@ -25,7 +26,9 @@ let
appImageDeps = [
pkgs.steam-run
pkgs.stdenv.cc.cc.lib # Ensures the modern C++ runtime is available
] ++ modernLibs ++ pinnedCurlLibs;
]
++ modernLibs
++ pinnedCurlLibs;
chataigneDesktopItem = {
desktopName = "Chataigne";
@@ -34,7 +37,10 @@ let
icon = "chataigne"; # The name of the icon file (without extension)
genericName = "Creative Control Software";
comment = "Control and experiment with creative applications, hardware, and media.";
categories = [ "AudioVideo" "Development" ];
categories = [
"AudioVideo"
"Development"
];
};
in
@@ -103,15 +109,15 @@ pkgs.stdenv.mkDerivation {
# 3. Create the 'chataigne' executable wrapper
cat > $out/bin/chataigne << EOF
#!${pkgs.stdenv.shell}
#!${pkgs.stdenv.shell}
# The LD_LIBRARY_PATH is created using all dependencies (excluding the wrapper 'steam-run').
# This ensures the AppImage finds the pinned CURL library.
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath (pkgs.lib.remove pkgs.steam-run appImageDeps)}:$LD_LIBRARY_PATH"
# The LD_LIBRARY_PATH is created using all dependencies (excluding the wrapper 'steam-run').
# This ensures the AppImage finds the pinned CURL library.
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath (pkgs.lib.remove pkgs.steam-run appImageDeps)}:$LD_LIBRARY_PATH"
# Use steam-run to launch the main execution script inside the extracted folder.
exec ${pkgs.steam-run}/bin/steam-run "$out/squashfs-root/AppRun" "\$@"
EOF
# Use steam-run to launch the main execution script inside the extracted folder.
exec ${pkgs.steam-run}/bin/steam-run "$out/squashfs-root/AppRun" "\$@"
EOF
chmod +x $out/bin/chataigne
'';