diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-07-24 04:28:12 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-07-24 04:28:12 +0000 |
| commit | 62fcd12a0a1ea557334dec1fa0cfdce69d003bd8 (patch) | |
| tree | 877a344efcbf7bc52aec2ab45a05e2baf58225ac /flake.nix | |
| parent | a6a3f943063ce04fd0fd3030c6f67711a7943bd4 (diff) | |
flake shell for typst
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!" + ''; + }; + }); + }; +} |
