{ lib, stdenv, meson, ninja, pkg-config, glew, glfw }: stdenv.mkDerivation { pname = "meowcraft"; version = "0.0.1"; src = ./.; nativeBuildInputs = [ meson ninja pkg-config ]; buildInputs = [ glew glfw ]; # NOTE: Don't packages usually also add the Apple SDKs as buildInputs? # Like OpenGL.framework, etc.? It seems to work without them, but I'm not sure. mesonFlags = [ "--buildtype" "release" "--prefix" "${placeholder "out"}" ]; meta = with lib; { description = "a dumb minecraft in c++ and opengl."; homepage = "https://git.rnrd.eu/meowcraft"; license = licenses.free; # TODO: Choose a specific license. platforms = [ "x86_64-darwin" ]; mainProgram = "meowcraft"; }; }