Add a flake file to build the project

This commit is contained in:
2023-11-30 04:02:58 +00:00
parent a34e143408
commit cd2d6366b0
3 changed files with 82 additions and 5 deletions

18
flake.nix Normal file
View File

@@ -0,0 +1,18 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
bergamot-elm = import ./elm.nix { inherit pkgs; };
in
{
packages = { inherit bergamot-elm; };
defaultPackage = bergamot-elm;
}
);
}