diff options
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/default.nix b/default.nix index ec42aa9..afaf4e9 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, cmake, glew, glfw }: +{ lib, stdenv, meson, ninja, pkg-config, glew, glfw }: stdenv.mkDerivation { pname = "meowcraft"; @@ -6,14 +6,14 @@ stdenv.mkDerivation { src = ./.; - nativeBuildInputs = [ cmake ]; + 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. - cmakeFlags = [ - "-DCMAKE_BUILD_TYPE=Release" - "-DCMAKE_INSTALL_PREFIX=\${out}" + mesonFlags = [ + "--buildtype" "release" + "--prefix" "${placeholder "out"}" ]; meta = with lib; { |
