nixcon2024/flake.nix

35 lines
874 B
Nix
Raw Permalink Normal View History

2024-10-23 22:58:25 +02:00
{
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;
};
};
};
}