20 lines
468 B
Nix
20 lines
468 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
katex-server = import ./default.nix { inherit (pkgs) mkYarnPackage; };
|
|
in
|
|
{
|
|
packages = { inherit katex-server; };
|
|
defaultPackage = katex-server;
|
|
}
|
|
);
|
|
}
|