chore: update typst nix-shell
This commit is contained in:
35
templates/flakes/typst.flake.nix
Normal file
35
templates/flakes/typst.flake.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
description = "Nightly Typst with Typst LSP";
|
||||
|
||||
inputs.typst-lsp.url = "github:nvarner/typst-lsp";
|
||||
inputs.typst.url = "github:typst/typst";
|
||||
inputs.utils.url = "github:numtide/flake-utils";
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
utils,
|
||||
typst,
|
||||
typst-lsp,
|
||||
...
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (system: let
|
||||
typst-overlay = _self: _super: {
|
||||
typst-lsp = typst-lsp.packages.${system}.default;
|
||||
typst = typst.packages.${system}.default.overrideAttrs (_old: {
|
||||
dontCheck = true;
|
||||
});
|
||||
};
|
||||
pkgs = nixpkgs.legacyPackages.${system}.appendOverlays [typst-overlay];
|
||||
typst-shell = pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
pkgs.typst-lsp
|
||||
pkgs.typst
|
||||
];
|
||||
};
|
||||
in {
|
||||
devShells.default = typst-shell;
|
||||
overlays.default = typst-overlay;
|
||||
legacyPackages = pkgs;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user