35 lines
874 B
Nix
35 lines
874 B
Nix
|
{
|
||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-24.05";
|
||
|
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
|
||
|
inputs.treefmt-nix.url = "github:numtide/treefmt-nix";
|
||
|
|
||
|
outputs =
|
||
|
{
|
||
|
self,
|
||
|
nixpkgs,
|
||
|
flake-parts,
|
||
|
...
|
||
|
}@inputs:
|
||
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||
|
imports = [ inputs.treefmt-nix.flakeModule ];
|
||
|
systems = [ "x86_64-linux" ];
|
||
|
perSystem =
|
||
|
{ config, pkgs, ... }:
|
||
|
{
|
||
|
devShells.default = pkgs.mkShell {
|
||
|
buildInputs = with pkgs; [
|
||
|
nixfmt-rfc-style
|
||
|
texliveFull
|
||
|
python3.pkgs.pygments
|
||
|
];
|
||
|
};
|
||
|
|
||
|
treefmt = {
|
||
|
projectRootFile = "flake.nix";
|
||
|
programs.nixfmt-rfc-style.enable = true;
|
||
|
programs.latexindent.enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|