diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index a49a0f6..883eef4 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -42,10 +42,16 @@ cloc viu qbittorrent - godot_4 jetbrains.idea-community-bin zed-editor mumble + + godot4-mono + omnisharp-roslyn + # I don't know why, I don't want to know why, I shouldn't + # have to wonder why, but for whatever reason this stupid + # dotnet sdk isn't being detected by godot unless we add it here + dotnet-sdk ]; services.murmur = { diff --git a/pkgs/default.nix b/pkgs/default.nix index 4dc22da..99e5508 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -3,6 +3,7 @@ win7-cursors = callPackage ./win7-cursors.nix {}; sddm-i3-theme = callPackage ./sddm-i3-theme.nix {}; ericw-tools-latest = callPackage ./ericw-tools-latest.nix {}; + godot4-mono = callPackage ./godot4-mono.nix {}; alacritty-sixel = callPackage ./alacritty-sixel.nix {}; i3status = prevPkgs.i3status.overrideAttrs (_: { patches = [ ../files/i3status-format-fix.patch ]; }); flameshot = prevPkgs.flameshot.overrideAttrs (_: { patches = [ ../files/flameshot-0x0-upload.patch ]; }); @@ -19,7 +20,7 @@ nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.glslang ]; buildPhase = '' cd Quake - make -j6 DO_USERDIRS=1 prefix=$out bindir=$out/bin + make -j6 DO_USERDIRS=1 prefix=$out bindir=$out/bin ''; }); protontricks = prevPkgs.protontricks.overrideAttrs (prev: { diff --git a/pkgs/godot4-mono.nix b/pkgs/godot4-mono.nix new file mode 100644 index 0000000..14d2a4a --- /dev/null +++ b/pkgs/godot4-mono.nix @@ -0,0 +1,69 @@ +{ + stdenv, + fetchzip, + autoPatchelfHook, + dotnet-sdk, + vulkan-loader, + libGL, + libX11, + libXcursor, + libXinerama, + libXext, + libXrandr, + libXrender, + libXi, + libXfixes, + libxkbcommon, + alsa-lib, + libpulseaudio, + dbus, + udev, + ... +}: +stdenv.mkDerivation { + pname = "godot4-mono"; + version = "4.3"; + + src = fetchzip { + # ... + url = "https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_mono_linux_x86_64.zip"; + hash = "sha256-L32cwE/E1aEAz6t3SlO0k/QQuKRt/8lJntfdCYVdGCE="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + ]; + + buildInputs = [ + dotnet-sdk + ]; + + runtimeDependencies = [ + dotnet-sdk + vulkan-loader + libGL + libX11 + libXcursor + libXinerama + libXext + libXrandr + libXrender + libXi + libXfixes + libxkbcommon + alsa-lib + libpulseaudio + dbus + dbus.lib + udev + ]; + + installPhase = '' + runHook preInstall + + install -m755 -D Godot_v4.3-stable_mono_linux.x86_64 $out/bin/godot4-mono + cp -fr * $out/bin/ + + runHook postInstall + ''; +}