asm-lsp: add support for darwin (#344556)

This commit is contained in:
h7x4 2024-10-01 20:16:36 +02:00 committed by GitHub
commit b5c0db4185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 13 deletions

View File

@ -3286,6 +3286,12 @@
{ fingerprint = "8916 F727 734E 77AB 437F A33A 19AB 76F5 CEE1 1392"; } { fingerprint = "8916 F727 734E 77AB 437F A33A 19AB 76F5 CEE1 1392"; }
]; ];
}; };
CaiqueFigueiredo = {
email = "public@caiquefigueiredo.me";
github = "caiquefigueiredo";
githubId = 20440897;
name = "Caique";
};
CaitlinDavitt = { CaitlinDavitt = {
email = "CaitlinDavitt@gmail.com"; email = "CaitlinDavitt@gmail.com";
github = "CaitlinDavitt"; github = "CaitlinDavitt";

View File

@ -1,8 +1,12 @@
{ lib {
, rustPlatform lib,
, fetchFromGitHub stdenv,
, pkg-config rustPlatform,
, openssl fetchFromGitHub,
pkg-config,
openssl,
darwin,
libiconv,
}: }:
let let
pname = "asm-lsp"; pname = "asm-lsp";
@ -18,13 +22,14 @@ rustPlatform.buildRustPackage {
hash = "sha256-0GB3tXZuCu3syh+RG+eXoliZVHMPOhYC3RchSSx4u5w="; hash = "sha256-0GB3tXZuCu3syh+RG+eXoliZVHMPOhYC3RchSSx4u5w=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ pkg-config ];
pkg-config
];
buildInputs = [ buildInputs =
openssl [ openssl ]
]; ++ lib.optionals stdenv.buildPlatform.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
libiconv
];
cargoHash = "sha256-AtCnYOOtViMpg+rz8miuBZg1pENBPaf9kamSPaVUyiw="; cargoHash = "sha256-AtCnYOOtViMpg+rz8miuBZg1pENBPaf9kamSPaVUyiw=";
@ -37,8 +42,11 @@ rustPlatform.buildRustPackage {
description = "Language server for NASM/GAS/GO Assembly"; description = "Language server for NASM/GAS/GO Assembly";
homepage = "https://github.com/bergercookie/asm-lsp"; homepage = "https://github.com/bergercookie/asm-lsp";
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ NotAShelf ]; maintainers = with lib.maintainers; [
NotAShelf
CaiqueFigueiredo
];
mainProgram = "asm-lsp"; mainProgram = "asm-lsp";
platforms = lib.platforms.linux; platforms = lib.platforms.unix;
}; };
} }