nixpkgs/pkgs/by-name/ni/nimlsp/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

45 lines
1.1 KiB
Nix

{ lib, buildNimPackage, fetchFromGitHub, srcOnly, nim-unwrapped-2 }:
buildNimPackage (finalAttrs: {
pname = "nimlsp";
version = "0.4.6";
src = fetchFromGitHub {
owner = "PMunch";
repo = "nimlsp";
rev = "v${finalAttrs.version}";
hash = "sha256-MCtpCx8jMQp0VXuMowh69d1DQreU5cDftBf0lww7PUM=";
};
lockFile = ./lock.json;
buildInputs =
let
# Needs this specific version to build.
jsonSchemaSrc = fetchFromGitHub {
owner = "PMunch";
repo = "jsonschema";
rev = "7b41c03e3e1a487d5a8f6b940ca8e764dc2cbabf";
hash = "sha256-f9F1oam/ZXwDKXqGMUUQ5+tMZKTe7t4UlZ4U1LAkRss=";
};
in
[ jsonSchemaSrc ];
nimFlags = [
"--threads:on"
"-d:explicitSourcePath=${srcOnly nim-unwrapped-2}"
"-d:tempDir=/tmp"
];
nimDefines = [ "nimcore" "nimsuggest" "debugCommunication" "debugLogging" ];
doCheck = false;
meta = {
description = "Language Server Protocol implementation for Nim";
homepage = "https://github.com/PMunch/nimlsp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ xtrayambak ];
};
})