From b6bdaeb9ec85746e53e3f9998b66f7c6d716d4ff Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 21 Nov 2024 16:20:20 +0100 Subject: [PATCH] chore: update typst nix-shell --- templates/{ => flakes}/typst.flake.nix | 0 templates/howto.md | 2 ++ templates/typst.nix | 8 ++++++++ 3 files changed, 10 insertions(+) rename templates/{ => flakes}/typst.flake.nix (100%) create mode 100644 templates/howto.md create mode 100644 templates/typst.nix diff --git a/templates/typst.flake.nix b/templates/flakes/typst.flake.nix similarity index 100% rename from templates/typst.flake.nix rename to templates/flakes/typst.flake.nix diff --git a/templates/howto.md b/templates/howto.md new file mode 100644 index 0000000..0ba060f --- /dev/null +++ b/templates/howto.md @@ -0,0 +1,2 @@ +Start normal shell with `nix-shell -p ` +Run file with `nix-shell ` diff --git a/templates/typst.nix b/templates/typst.nix new file mode 100644 index 0000000..32ec136 --- /dev/null +++ b/templates/typst.nix @@ -0,0 +1,8 @@ +with (import {}); +mkShell { + buildInputs = [ + (typst.overrideAttrs { version = "0.11.1"; }) + ]; +} + +