1

Update envs: C/C++ and LaTeX

This commit is contained in:
2023-04-02 15:18:43 +02:00
parent 3478433fa0
commit e8e382f111
3 changed files with 115 additions and 2 deletions

31
env/latex.nix vendored Normal file
View File

@ -0,0 +1,31 @@
{
description = "LaTeX Environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.devshell.url = "github:numtide/devshell";
outputs = {
self,
nixpkgs,
flake-utils,
devshell,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [devshell.overlays.default];
};
# TODO: Custom LaTeX "distribution"? With curated packages?
in {
devShell = pkgs.devshell.mkShell {
name = "LaTeX Environment";
packages = with pkgs; [
texlab
];
};
});
}