triangle/flake.nix
2023-11-10 19:21:37 -06:00

20 lines
539 B
Nix

{
description = "A very basic flake";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
flakePkgs = {
triangle = pkgs.callPackage ./. { };
triangle-wasm = pkgs.callPackage ./wasm.nix { };
};
in {
packages = flakePkgs;
devShell = pkgs.mkShell {
inputsFrom = with flakePkgs; [ triangle ];
packages = with pkgs; [ nixfmt emscripten ];
};
});
}