This respository provides SML# compiler packages for Nix/NixOS.
To run SML# on Nix/NixOS, execute the following command:
nix run github:smlsharp/nixpkgs
Include the following in your flake.nix
:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
smlsharp = {
url = "github:smlsharp/nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
Start a bash shell by
nix develop github:smlsharp/nixpkgs
If you'd like to rebuild minismlsharp, install LLVM 7 by the following command:
nix build github:nixos/nixpkgs/nixos-23.11#llvm_7.dev -o llvm7
Then, you will find llvm7-dev
symbolic link in the current directory.
MIT