mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
smithy-language-server: init at 0.9.0 (#523679)
This commit is contained in:
@@ -31137,6 +31137,13 @@
|
||||
{ fingerprint = "D2A8 A906 ACA7 B6D6 575E 9A2F 3A49 5054 6EA6 9E5C"; }
|
||||
];
|
||||
};
|
||||
yoquec = {
|
||||
email = "alvaro.viejo@yoquec.com";
|
||||
github = "yoquec";
|
||||
githubId = 59575696;
|
||||
name = "Alvaro Viejo";
|
||||
matrix = "@yoquec.com:matrix.org";
|
||||
};
|
||||
yorickvp = {
|
||||
email = "yorickvanpelt@gmail.com";
|
||||
matrix = "@yorickvp:matrix.org";
|
||||
|
||||
1136
pkgs/by-name/sm/smithy-language-server/deps.json
generated
Normal file
1136
pkgs/by-name/sm/smithy-language-server/deps.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
74
pkgs/by-name/sm/smithy-language-server/package.nix
Normal file
74
pkgs/by-name/sm/smithy-language-server/package.nix
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
jre,
|
||||
gradle,
|
||||
runCommand,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "smithy-language-server";
|
||||
version = "0.9.0";
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "smithy-lang";
|
||||
repo = "smithy-language-server";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-BnnZKADY9HiSy8mlwuh+e7g6Zz422l/rx1NTSRgexIU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gradle
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
gradleBuildTask = "installDist";
|
||||
|
||||
# NOTE: in 0.9.0, test ProjectLoaderTest.loadsProjectWithMavenDep() is failing.
|
||||
# Once the test is fixed, checking should be re-enabled.
|
||||
# doCheck = true;
|
||||
|
||||
mitmCache = gradle.fetchDeps {
|
||||
inherit (finalAttrs) pname;
|
||||
data = ./deps.json;
|
||||
};
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{bin,share/smithy-language-server}
|
||||
cp -r build/install/smithy-language-server/lib $out/share/smithy-language-server/
|
||||
|
||||
makeWrapper ${lib.getExe jre} $out/bin/smithy-language-server \
|
||||
--set CLASSPATH "$out/share/smithy-language-server/lib/*" \
|
||||
--add-flags "software.amazon.smithy.lsp.Main"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
help = runCommand "${finalAttrs.pname}-help-test" { } ''
|
||||
${lib.getExe finalAttrs.finalPackage} --help &> $out
|
||||
grep "Run the Smithy Language Server" $out
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
mainProgram = "smithy-language-server";
|
||||
description = "Language server implementation for the Smithy IDL";
|
||||
homepage = "https://github.com/smithy-lang/smithy-language-server";
|
||||
sourceProvenance = with lib.sourceTypes; [
|
||||
fromSource
|
||||
binaryBytecode # deps
|
||||
];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ yoquec ];
|
||||
inherit (jre.meta) platforms;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user