aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.envrc1
-rw-r--r--.gitignore1
-rw-r--r--flake.nix34
3 files changed, 36 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -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
+ ];
+ };
+ });
+ };
+}