From 289f78804f07cbc0266e65dc0159cfdba72c6de8 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Wed, 19 Apr 2023 08:24:00 -0400 Subject: [PATCH] Using typst as 3rd party flake in devshell --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 073a624..8a69f70 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "Basic flake with typst as input"; + description = "Using typst as 3rd party flake in devshell"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; @@ -10,13 +10,14 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; + typst = typst-pkg.packages.${system}.default; in { packages = { default = pkgs.hello; }; devShells.default = pkgs.mkShell { - buildInputs = with pkgs; [deno]; + buildInputs = with pkgs; [deno typst]; }; } );