feat(templates): move templates to a better name

This commit is contained in:
Marco Thomas
2023-11-28 11:24:34 +01:00
parent 7fbf65802d
commit 7461de05bb
2 changed files with 35 additions and 0 deletions

7
templates/tex.nix Normal file
View File

@@ -0,0 +1,7 @@
with (import <nixpkgs> {});
mkShell {
buildInputs = [
python3
texlive.combined.scheme-full
];
}

35
templates/typst.flake.nix Normal file
View 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;
});
}