-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emacsPackages.lspce: 1.0.0-unstable-2024-02-03 -> 1.1.0-unstable-2024…
…-07-13
- Loading branch information
1 parent
2e930ea
commit 6837f90
Showing
2 changed files
with
69 additions
and
58 deletions.
There are no files selected for viewing
80 changes: 22 additions & 58 deletions
80
pkgs/applications/editors/emacs/elisp-packages/manual-packages/lspce/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,29 @@ | ||
{ lib | ||
, emacs | ||
, f | ||
, fetchFromGitHub | ||
, markdown-mode | ||
, rustPlatform | ||
, trivialBuild | ||
, yasnippet | ||
{ | ||
lib, | ||
callPackage, | ||
f, | ||
lspce, | ||
markdown-mode, | ||
melpaBuild, | ||
yasnippet, | ||
}: | ||
|
||
let | ||
version = "1.0.0-unstable-2024-02-03"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "zbelial"; | ||
repo = "lspce"; | ||
rev = "543dcf0ea9e3ff5c142c4365d90b6ae8dc27bd15"; | ||
hash = "sha256-LZWRQOKkTjNo8jecBRholW9SHpiK0SWcV8yObojpvxo="; | ||
}; | ||
|
||
meta = { | ||
homepage = "https://github.com/zbelial/lspce"; | ||
description = "LSP Client for Emacs implemented as a module using rust"; | ||
license = lib.licenses.gpl3Only; | ||
maintainers = [ ]; | ||
inherit (emacs.meta) platforms; | ||
}; | ||
|
||
lspce-module = rustPlatform.buildRustPackage { | ||
inherit version src meta; | ||
pname = "lspce-module"; | ||
|
||
cargoHash = "sha256-W9rsi7o4KvyRoG/pqRKOBbJtUoSW549Sh8+OV9sLcxs="; | ||
|
||
checkFlags = [ | ||
# flaky test | ||
"--skip=msg::tests::serialize_request_with_null_params" | ||
lspce-module = callPackage ./module.nix { }; | ||
self = melpaBuild { | ||
pname = "lspce"; | ||
inherit (lspce-module) version src meta; | ||
|
||
packageRequires = [ | ||
f | ||
lspce-module | ||
markdown-mode | ||
yasnippet | ||
]; | ||
|
||
postInstall = '' | ||
mkdir -p $out/share/emacs/site-lisp | ||
for f in $out/lib/*; do | ||
mv $f $out/share/emacs/site-lisp/lspce-module.''${f##*.} | ||
done | ||
rmdir $out/lib | ||
''; | ||
passthru = { | ||
inherit lspce-module; | ||
}; | ||
}; | ||
in | ||
trivialBuild rec { | ||
inherit version src meta; | ||
pname = "lspce"; | ||
|
||
buildInputs = propagatedUserEnvPkgs; | ||
|
||
propagatedUserEnvPkgs = [ | ||
f | ||
markdown-mode | ||
yasnippet | ||
lspce-module | ||
]; | ||
|
||
passthru = { | ||
inherit lspce-module; | ||
}; | ||
} | ||
self |
47 changes: 47 additions & 0 deletions
47
pkgs/applications/editors/emacs/elisp-packages/manual-packages/lspce/module.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
lib, | ||
callPackage, | ||
emacsPackages, | ||
fetchFromGitHub, | ||
rustPlatform, | ||
}: | ||
|
||
let | ||
self = rustPlatform.buildRustPackage { | ||
pname = "lspce-module"; | ||
version = "1.1.0-unstable-2024-07-13"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "zbelial"; | ||
repo = "lspce"; | ||
rev = "01b77a4f544a912409857083842db51a20bfdbf3"; | ||
hash = "sha256-oew5EujNYGjk/agBw3ECAVe7GZl8rw/4M5t32JM+1T8="; | ||
}; | ||
|
||
cargoHash = "sha256-YLcSaFHsm/Iw7Q3y/YkfdbYKUPW0DRmaZnZ1A9vKR14="; | ||
|
||
checkFlags = [ | ||
# flaky test | ||
"--skip=msg::tests::serialize_request_with_null_params" | ||
]; | ||
|
||
strictDeps = true; | ||
|
||
# Move all lib/ files to share/emacs/site-lisp | ||
postInstall = '' | ||
mkdir -p $out/share/emacs/site-lisp | ||
for f in $out/lib/*; do | ||
mv $f $out/share/emacs/site-lisp/lspce-module.''${f##*.} | ||
done | ||
rmdir $out/lib | ||
''; | ||
|
||
meta = { | ||
homepage = "https://github.com/zbelial/lspce"; | ||
description = "LSP Client for Emacs implemented as a module using rust"; | ||
license = lib.licenses.gpl3Only; | ||
maintainers = with lib.maintainers; [ AndersonTorres ]; | ||
}; | ||
}; | ||
in | ||
self |