nixpkgs/pkgs/by-name/as/asm-lsp/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
972 B
Nix
Raw Normal View History

2024-09-28 04:33:14 +00:00
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
2023-09-27 16:24:18 +00:00
}:
let
pname = "asm-lsp";
2024-09-06 04:16:39 +00:00
version = "0.9.0";
2023-09-27 16:24:18 +00:00
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "bergercookie";
repo = "asm-lsp";
rev = "v${version}";
2024-09-06 04:16:39 +00:00
hash = "sha256-0GB3tXZuCu3syh+RG+eXoliZVHMPOhYC3RchSSx4u5w=";
2023-09-27 16:24:18 +00:00
};
2024-09-28 04:33:14 +00:00
nativeBuildInputs = [ pkg-config ];
2023-09-27 16:24:18 +00:00
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ openssl ];
2023-09-27 16:24:18 +00:00
2024-09-06 04:16:39 +00:00
cargoHash = "sha256-AtCnYOOtViMpg+rz8miuBZg1pENBPaf9kamSPaVUyiw=";
2024-05-02 11:39:07 +00:00
# tests expect ~/.cache/asm-lsp to be writable
preCheck = ''
export HOME=$(mktemp -d)
'';
2023-09-27 16:24:18 +00:00
meta = {
description = "Language server for NASM/GAS/GO Assembly";
homepage = "https://github.com/bergercookie/asm-lsp";
license = lib.licenses.bsd2;
2024-09-28 04:33:14 +00:00
maintainers = with lib.maintainers; [
NotAShelf
CaiqueFigueiredo
];
mainProgram = "asm-lsp";
2024-09-27 02:50:45 +00:00
platforms = lib.platforms.unix;
2023-09-27 16:24:18 +00:00
};
}