diff options
author | Aada | 2024-06-13 12:52:32 +0200 |
---|---|---|
committer | Aada | 2024-06-13 12:52:32 +0200 |
commit | bbb1edd035541fa833cf1cde02be7e7f4761eb58 (patch) | |
tree | b5e24dbc97a2685e69d5c096ee3fd6e0e8824ab0 |
Initial commit
-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 + ]; + }; + }); + }; +} |