nixpkgs/pkgs/tools/misc/kak-lsp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
970 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, rustPlatform, perl, CoreServices, Security, SystemConfiguration }:
2019-06-27 17:42:41 +00:00
rustPlatform.buildRustPackage rec {
pname = "kak-lsp";
2023-12-16 02:59:12 +00:00
version = "15.0.1";
2019-06-27 17:42:41 +00:00
src = fetchFromGitHub {
owner = pname;
2019-06-27 17:42:41 +00:00
repo = pname;
rev = "v${version}";
2023-12-16 02:59:12 +00:00
sha256 = "sha256-W4z2YtOEBCTM+NsL1HBHSYCXJXN459chE4RW0CPMjD4=";
2019-06-27 17:42:41 +00:00
};
2023-12-16 02:59:12 +00:00
cargoHash = "sha256-tAA9eu4y1h6huNmEgY3L6v29itP5I4a8UZgoA+ANoq0=";
2019-06-27 17:42:41 +00:00
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
patches = [ ./0001-Use-full-Perl-path.patch ];
postPatch = ''
substituteInPlace rc/lsp.kak \
--subst-var-by perlPath ${lib.getBin perl}
'';
2019-06-27 17:42:41 +00:00
meta = with lib; {
description = "Kakoune Language Server Protocol Client";
2021-09-04 10:50:41 +00:00
homepage = "https://github.com/kak-lsp/kak-lsp";
2019-06-27 17:42:41 +00:00
license = with licenses; [ unlicense /* or */ mit ];
maintainers = with maintainers; [ spacekookie poweredbypie ];
2023-11-27 01:17:53 +00:00
mainProgram = "kak-lsp";
2019-06-27 17:42:41 +00:00
};
}