diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-07-23 04:51:56 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-07-23 04:51:56 +0000 |
| commit | ee0dbb605e73071431a3ea4b7bbfa03a6c292542 (patch) | |
| tree | fdab9b60b9d17d6cb6afc663c3ab0fc786db2959 /flake.nix | |
Initial commit
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 27 |
1 files changed, 27 insertions, 0 deletions
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!" + ''; + }; + }); + }; +} |
