diff options
-rw-r--r-- | .envrc | 1 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | flake.nix | 34 |
3 files changed, 36 insertions, 0 deletions
@@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b42106 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.direnv/ diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..8bdab1d --- /dev/null +++ b/flake.nix @@ -0,0 +1,34 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; + }; + outputs = { self, nixpkgs, ... }: + let + supportedSystems = [ "x86_64-linux" "aarch64-linux" ]; + forEachSupportedSystem = f: + nixpkgs.lib.genAttrs supportedSystems (system: + f { + pkgs = import nixpkgs { inherit system; }; + }); + in + { + devShells = forEachSupportedSystem ({ pkgs }: { + default = + let + texpkgs = pkgs.texlive.combine { + inherit (pkgs.texlive) + scheme-basic collection-xetex collection-pictures + collection-latexrecommended collection-latexextra + collection-fontsextra; + }; + in + pkgs.mkShell { + packages = with pkgs; [ + ]; + buildInputs = [ + texpkgs + ]; + }; + }); + }; +} |