zls: build for baseline arch, cleanup

This commit is contained in:
fortuneteller2k 2021-05-20 10:25:16 +08:00
parent 259e3fc46f
commit c2b1797d0f

View file

@ -19,14 +19,14 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
zig build -Drelease-safe --prefix $out install
zig build -Drelease-safe -Dtarget=${stdenv.hostPlatform.parsed.cpu.name}-native --prefix $out install
'';
meta = with lib; {
description = "Zig LSP implementation + Zig Language Server";
changelog = "https://github.com/zigtools/zls/releases/tag/${version}";
homepage = "https://github.com/zigtools/zls";
license = [ licenses.mit ];
license = licenses.mit;
maintainers = with maintainers; [ fortuneteller2k ];
};
}