20 lines
539 B
Nix
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 ];
|
|
};
|
|
});
|
|
}
|