diff --git a/pkgs/development/tools/language-servers/nixd/default.nix b/pkgs/development/tools/language-servers/nixd/default.nix index d8006f0c7630..7ecd97835b1a 100644 --- a/pkgs/development/tools/language-servers/nixd/default.nix +++ b/pkgs/development/tools/language-servers/nixd/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , nix-update-script , bison , boost182 @@ -27,6 +28,16 @@ stdenv.mkDerivation rec { hash = "sha256-zeBVh9gPMR+1ETx0ujl+TUSoeHHR4fkQfxyOpCDKP9M="; }; + patches = [ + # Fix build on Darwin. Remove with next release. + # https://github.com/nix-community/nixd/pull/172 + (fetchpatch { + url = "https://github.com/nix-community/nixd/commit/3dbe1eb6bde1949b510e19a2d1863a2f4d2329a6.patch"; + hash = "sha256-130L+85bZIBmNfHqH3PdmQCBuxLnCs3IyAAoW15RQSk="; + includes = [ "lib/lspserver/src/Logger.cpp" "lib/nixd/src/ServerController.cpp" ]; + }) + ]; + mesonBuildType = "release"; nativeBuildInputs = [ @@ -83,6 +94,5 @@ stdenv.mkDerivation rec { license = lib.licenses.lgpl3Plus; maintainers = with lib.maintainers; [ inclyc Ruixi-rebirth ]; platforms = lib.platforms.unix; - broken = stdenv.isDarwin; }; }