From 4e6f9775819f236538570ff52a769511ee42a794 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 27 Sep 2023 19:24:18 +0300 Subject: [PATCH] asm-lsp: init at v0.4.2 --- pkgs/by-name/as/asm-lsp/package.nix | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/as/asm-lsp/package.nix diff --git a/pkgs/by-name/as/asm-lsp/package.nix b/pkgs/by-name/as/asm-lsp/package.nix new file mode 100644 index 000000000000..19dcf84116dc --- /dev/null +++ b/pkgs/by-name/as/asm-lsp/package.nix @@ -0,0 +1,39 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, openssl +}: +let + pname = "asm-lsp"; + version = "0.4.2"; +in +rustPlatform.buildRustPackage { + inherit pname version; + + src = fetchFromGitHub { + owner = "bergercookie"; + repo = "asm-lsp"; + rev = "v${version}"; + hash = "sha256-EGgYOU6y23ULjnMGNjYhgF0JMPgvRuQ4UOWqwJxhBpU="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + ]; + + cargoHash = "sha256-x8Cj39Wki+pdoNIO8QPGK29KFJrHtDMoZJIXFEldno0="; + + meta = { + description = "Language server for NASM/GAS/GO Assembly"; + homepage = "https://github.com/bergercookie/asm-lsp"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ NotAShelf ]; + mainProgram = pname; + platforms = lib.platforms.linux; + }; +}