From bbb1edd035541fa833cf1cde02be7e7f4761eb58 Mon Sep 17 00:00:00 2001 From: Aada Date: Thu, 13 Jun 2024 12:52:32 +0200 Subject: Initial commit --- .envrc | 1 + .gitignore | 1 + flake.nix | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 flake.nix 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 + ]; + }; + }); + }; +} -- cgit v1.2.3