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