nixd: fix build on darwin

This commit is contained in:
Mario Rodas
2023-06-25 16:03:45 +02:00
committed by Matthieu Coudron
parent d7d2970ae6
commit 07059ee2fa
@@ -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;
};
}