bile 0.1.0

A simple build system, structured around Lua scripts.
{
  system ? builtins.currentSystem,
  rust-overlay ? fetchGit {
    url = "https://github.com/oxalica/rust-overlay";
    shallow = true;
  },
  nixpkgs ? <nixpkgs>,
  rustup-toolchain ? ./rust-toolchain.toml,
}:
let
  pkgs = import nixpkgs {
    overlays = [ (import rust-overlay) ];
    inherit system;
  };

  rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile rustup-toolchain;
in
pkgs.mkShell {
  buildInputs = [ pkgs.luajit ];
  nativeBuildInputs = with pkgs; [
    pkg-config
    rustPlatform.bindgenHook
    luajit

    # Rust
    rust-toolchain
  ];
  LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath [ pkgs.luajit ]}";
  RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
}