26 lines
548 B
Nix
26 lines
548 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||
|
utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
outputs = { self, nixpkgs, utils, ... }:
|
||
|
utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs { inherit system; };
|
||
|
in
|
||
|
{
|
||
|
devShells.default = pkgs.mkShell {
|
||
|
buildInputs = [
|
||
|
pkgs.typst
|
||
|
pkgs.typstyle
|
||
|
pkgs.typst-live
|
||
|
];
|
||
|
|
||
|
shellHook = ''
|
||
|
echo `${pkgs.typst}/bin/typst --version`
|
||
|
'';
|
||
|
};
|
||
|
});
|
||
|
}
|
||
|
|