aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAada2024-06-13 12:52:32 +0200
committerAada2024-06-13 12:52:32 +0200
commitbbb1edd035541fa833cf1cde02be7e7f4761eb58 (patch)
treeb5e24dbc97a2685e69d5c096ee3fd6e0e8824ab0
Initial commit
-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
+ ];
+ };
+ });
+ };
+}