Update nix inputs and kak-lsp

This commit is contained in:
Natsu Kagami 2022-04-11 14:09:07 -04:00
parent d110b43c42
commit 44c2288a43
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 33 additions and 23 deletions

View file

@ -210,11 +210,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1649117019, "lastModified": 1649490789,
"narHash": "sha256-ID7nw/8MDgqj/cbJ0wy6AtQ9wp58hSnE6+weZwuHnso=", "narHash": "sha256-YrhVxwoofZSx/wLZ4GYET//8vS+uqWX572zvdmP/Etg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ccb90fb9e11459aeaf83cc28d5f8910816d90dd0", "rev": "c86185d20d708013caf97a6adaa8dc6d72313c75",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -27,28 +27,37 @@ let
kak-lsp = kak-lsp =
let let
rev = "v12.1.0"; rev = "e98868235515664aeb42f0784073128dcda63ce1";
# version = "r${builtins.substring 0 6 rev}"; version = "r${builtins.substring 0 6 rev}";
version = rev; # version = rev;
in in
pkgs.kak-lsp.overrideAttrs (drv: rec { pkgs.unstable.rustPlatform.buildRustPackage
inherit rev version; rec {
buildInputs = drv.buildInputs ++ inherit rev version;
(with pkgs; lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration); pname = "kak-lsp";
src = pkgs.fetchFromGitHub {
owner = "kak-lsp";
repo = "kak-lsp";
rev = rev;
sha256 = "sha256-5sPw95lSbswIUbNIZ4mpA3WeZt7u+a5s4KxkTnN14Sw=";
# sha256 = lib.fakeSha256;
};
cargoDeps = drv.cargoDeps.overrideAttrs (lib.const { src = pkgs.fetchFromGitHub {
inherit src; owner = pname;
outputHash = "sha256-Ezp9Lf2RacJlbMeiaSIDKdTQSg9pXgLyJcbBLJbqS5k="; repo = pname;
# outputHash = lib.fakeSha256; rev = "v${version}";
}); sha256 = "sha256-xjfYdwDNp2Ak7t0dfp0SWJcFVve2iDcEKzDukcxVmzI=";
}); # sha256 = lib.fakeSha256;
};
cargoSha256 = "sha256-xfo/LPx8KC4e5KbVkLs6+ezqcZrjjqIE3egB8aSWxo4=";
# cargoSha256 = lib.fakeSha256;
buildInputs = (with pkgs;
lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ])
);
meta = with lib; {
description = "Kakoune Language Server Protocol Client";
homepage = "https://github.com/kak-lsp/kak-lsp";
license = with licenses; [ unlicense /* or */ mit ];
maintainers = [ maintainers.spacekookie ];
};
};
in in
{ {
imports = [ ../modules/programs/my-kakoune ./kaktex.nix ]; imports = [ ../modules/programs/my-kakoune ./kaktex.nix ];
@ -158,3 +167,4 @@ in
} }
]; ];
} }