nix-home/home/kakoune/kak-lsp.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-30 19:31:57 +00:00
{ config, pkgs, lib, ... }:
let
2021-10-20 01:22:41 +00:00
rev = "3586feab17000f6ef526b2f9f6a11e008512b3e8";
2021-09-30 19:31:57 +00:00
version = "r${builtins.substring 0 6 rev}";
kak-lsp = pkgs.kak-lsp.overrideAttrs (drv: rec {
inherit rev version;
buildInputs = drv.buildInputs ++
(with pkgs; lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration);
src = pkgs.fetchFromGitHub {
owner = "kak-lsp";
repo = "kak-lsp";
rev = rev;
2021-10-20 01:22:41 +00:00
sha256 = "sha256-eSqqmlyD103AitHHbgdUAc1SzDpba7jRAokt1Kr1xhM=";
2021-09-30 19:31:57 +00:00
};
cargoDeps = drv.cargoDeps.overrideAttrs (lib.const {
inherit src;
2021-10-09 02:52:28 +00:00
outputHash = (
if pkgs.stdenv.isDarwin
then "sha256-U5hiEak47Dd/R7II6d+0/n3ZmT1ryDk4S+/lV2cH6HM="
2021-10-09 02:52:28 +00:00
else "0ywb9489jrb5lsycxlxzrj2khkcjhvzxbb0ckbpwwvg11r4ds240"
);
2021-09-30 19:31:57 +00:00
});
});
in
{
home.packages = [ kak-lsp ];
# Configurations
home.file."kakoune/kak-lsp.toml" = {
source = ./. + "/kak-lsp.toml";
target = ".config/kak-lsp/kak-lsp.toml";
};
}