From 62fcd12a0a1ea557334dec1fa0cfdce69d003bd8 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Fri, 24 Jul 2026 00:28:12 -0400 Subject: flake shell for typst --- flake.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..057056a --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + description = "A basic Typst project."; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + inputs.systems.url = "github:nix-systems/default"; + + outputs = { systems, nixpkgs, ... }: + let + eachSystem = nixpkgs.lib.genAttrs (import systems); + in + { + devShells = eachSystem (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + default = pkgs.mkShell { + packages = with pkgs; [ + typst + ]; + shellHook = '' + echo "Welcome to the shell!" + ''; + }; + }); + }; +} -- cgit v1.2.3