Start migrating to a flake

This commit is contained in:
2022-03-27 17:45:55 -07:00
parent a42d433950
commit c280798a26
3 changed files with 63 additions and 2 deletions

19
flake.nix Normal file
View File

@@ -0,0 +1,19 @@
{
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 = pkgs.callPackage ./default.nix {};
in
{
packages = { inherit katex-server; };
defaultPackage = katex-server;
}
);
}