godot4-mono :-(

This commit is contained in:
krizej 2024-09-19 19:47:29 +02:00
parent a8e522d86e
commit d7d8a4edf9
3 changed files with 78 additions and 2 deletions

View file

@ -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 = {

View file

@ -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: {

69
pkgs/godot4-mono.nix Normal file
View file

@ -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
'';
}