Clip masks complete
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -14,8 +14,8 @@
|
||||
rmluiSrc = pkgs.fetchFromGitHub {
|
||||
owner = "mikke89";
|
||||
repo = "RmlUi";
|
||||
rev = "9c74c4fadc2ad7f1496239e560bab19ca2fe5072";
|
||||
hash = "sha256-YZz41ViE3+a0VPypnbJ1Orlf5Hyxd65se5yzyHIY7ZI=";
|
||||
tag = "6.3";
|
||||
hash = "sha256-ZoK6H3ldrgHjCoMgDg+6XAD+ZaCwLuUgPq0fK+GdlCs=";
|
||||
};
|
||||
|
||||
rmluiCmakeFlags = [
|
||||
@@ -27,13 +27,23 @@
|
||||
|
||||
rmlui = pkgs.stdenv.mkDerivation {
|
||||
pname = "rmlui";
|
||||
version = "master";
|
||||
version = "6.3";
|
||||
src = rmluiSrc;
|
||||
nativeBuildInputs = [ pkgs.cmake pkgs.pkg-config ];
|
||||
buildInputs = [ pkgs.freetype ];
|
||||
cmakeFlags = rmluiCmakeFlags ++ [ "-DBUILD_SHARED_LIBS=ON" ];
|
||||
};
|
||||
|
||||
raylibPatched = pkgs.raylib.overrideAttrs (old: {
|
||||
postPatch = (old.postPatch or "") + ''
|
||||
substituteInPlace src/platforms/rcore_desktop_glfw.c \
|
||||
--replace-fail \
|
||||
'glfwSetJoystickCallback(NULL);' \
|
||||
'glfwWindowHint(GLFW_STENCIL_BITS, 8);
|
||||
glfwSetJoystickCallback(NULL);'
|
||||
'';
|
||||
});
|
||||
|
||||
nativeBuildTools = with pkgs; [
|
||||
cmake
|
||||
pkg-config
|
||||
@@ -41,7 +51,7 @@
|
||||
];
|
||||
|
||||
nativeRuntimeDeps = with pkgs; [
|
||||
raylib
|
||||
raylibPatched
|
||||
libGL
|
||||
libX11
|
||||
libXcursor
|
||||
@@ -79,6 +89,8 @@
|
||||
--prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath nativeRuntimeDeps}"
|
||||
'';
|
||||
};
|
||||
|
||||
packages.raylibPatched = raylibPatched;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user