diff --git a/flake.nix b/flake.nix index c2a0159..120492d 100644 --- a/flake.nix +++ b/flake.nix @@ -3,22 +3,44 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; + flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { - inherit system; - }; - in rec { - devShell = pkgs.mkShell { - buildInputs = with pkgs; [ - quarto - python314 - uv - ]; - }; - }); + outputs = + { + self, + nixpkgs, + flake-utils, + ... + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { + inherit system; + }; + in + { + devShell.default = pkgs.mkShell { + buildInputs = with pkgs; [ + just + tailwindcss + quarto + python314 + uv + ]; + }; + apps = { + preview = { + type = "app"; + program = toString ( + pkgs.writers.writeBash "preview" '' + set -e + ${pkgs.quarto}/bin/quarto preview + '' + ); + }; + }; + } + ); } -