Move stuff back to stable nixpkgs

This commit is contained in:
Natsu Kagami 2023-06-11 07:20:43 +02:00
parent 6306d0d927
commit 5bfa0c6402
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
12 changed files with 45 additions and 25 deletions

View file

@ -1,5 +1,39 @@
{ config, pkgs, lib, ... }:
let
texlab = pkgs.rustPlatform.buildRustPackage rec {
pname = "texlab";
version = "5.7.0";
src = pkgs.fetchFromGitHub {
owner = "latex-lsp";
repo = "texlab";
rev = "refs/tags/v${version}";
sha256 = "sha256-GvORAPbQOdVpz4yY66b3OObewU98V26cZ6nrJ35nlkg=";
};
cargoSha256 = "sha256-b7v3ODOjY5BQCzVqlLCNUOaZS95AvIvyjOeas2XfRjM=";
outputs = [ "out" "man" ];
nativeBuildInputs = with pkgs; [ installShellFiles help2man ];
buildInputs = lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
libiconv
Security
CoreServices
]);
# When we cross compile we cannot run the output executable to
# generate the man page
postInstall = ''
# TexLab builds man page separately in CI:
# https://github.com/latex-lsp/texlab/blob/v5.7.0/.github/workflows/publish.yml#L127-L131
help2man --no-info "$out/bin/texlab" > texlab.1
installManPage texlab.1
'';
};
in
{
imports = [
./kakoune/kak.nix
@ -78,6 +112,8 @@
BAT_THEME = "GitHub";
# Editor
EDITOR = "kak";
# PATH Overrides
PATH = "${config.home.homeDirectory}/.bin/overrides:$PATH";
};
home.sessionPath = [
@ -142,6 +178,5 @@
jq.enable = true;
nushell.enable = true;
nushell.package = pkgs.unstable.nushell;
};
}