clojure-lsp: move to pkgs/by-name/cl/clojure-lsp and apply nixfmt

This commit is contained in:
Casey Link 2024-06-21 14:31:40 +02:00
parent 61f9022a1d
commit 190c3792b9
No known key found for this signature in database
GPG Key ID: 8865AA3A7BD80355
2 changed files with 23 additions and 23 deletions

View File

@ -1,13 +1,14 @@
{ lib
, stdenv
, buildGraalvmNativeImage
, babashka
, fetchurl
, fetchFromGitHub
, clojure
, writeScript
, testers
, clojure-lsp
{
lib,
stdenv,
buildGraalvmNativeImage,
babashka,
fetchurl,
fetchFromGitHub,
clojure,
writeScript,
testers,
clojure-lsp,
}:
buildGraalvmNativeImage rec {
@ -35,17 +36,18 @@ buildGraalvmNativeImage rec {
];
doCheck = true;
checkPhase = ''
runHook preCheck
checkPhase =
''
runHook preCheck
export HOME="$(mktemp -d)"
./clojure-lsp --version | fgrep -q '${version}'
''
# TODO: fix classpath issue per https://github.com/NixOS/nixpkgs/pull/153770
#${babashka}/bin/bb integration-test ./clojure-lsp
+ ''
runHook postCheck
'';
export HOME="$(mktemp -d)"
./clojure-lsp --version | fgrep -q '${version}'
''
# TODO: fix classpath issue per https://github.com/NixOS/nixpkgs/pull/153770
#${babashka}/bin/bb integration-test ./clojure-lsp
+ ''
runHook postCheck
'';
passthru.tests.version = testers.testVersion {
inherit version;
@ -78,7 +80,7 @@ buildGraalvmNativeImage rec {
description = "Language Server Protocol (LSP) for Clojure";
homepage = "https://github.com/clojure-lsp/clojure-lsp";
changelog = "https://github.com/clojure-lsp/clojure-lsp/releases/tag/${version}";
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ericdallo ];
};

View File

@ -17140,8 +17140,6 @@ with pkgs;
jdk = jdk21;
};
clojure-lsp = callPackage ../development/tools/misc/clojure-lsp { };
clooj = callPackage ../development/interpreters/clojure/clooj.nix { };
dhall = haskell.lib.compose.justStaticExecutables haskellPackages.dhall;