13 rustPlatform.buildRustPackage {
14 inherit pname version;
16 src = fetchFromGitHub {
17 owner = "bergercookie";
20 hash = "sha256-0GB3tXZuCu3syh+RG+eXoliZVHMPOhYC3RchSSx4u5w=";
23 nativeBuildInputs = [ pkg-config ];
25 buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ openssl ];
27 cargoHash = "sha256-AtCnYOOtViMpg+rz8miuBZg1pENBPaf9kamSPaVUyiw=";
29 # tests expect ~/.cache/asm-lsp to be writable
31 export HOME=$(mktemp -d)
35 description = "Language server for NASM/GAS/GO Assembly";
36 homepage = "https://github.com/bergercookie/asm-lsp";
37 license = lib.licenses.bsd2;
38 maintainers = with lib.maintainers; [
42 mainProgram = "asm-lsp";
43 platforms = lib.platforms.unix;