Skip to content

smlsharp/nixpkgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SML# nixpkgs repository

This respository provides SML# compiler packages for Nix/NixOS.

Getting Started

To run SML# on Nix/NixOS, execute the following command:

nix run github:smlsharp/nixpkgs

Using with Flakes

Include this respository as an input in your flake.nix and add overlay to include smlsharp into nixpkgs.

For example:

{
  input.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  input.smlsharp.url = "github:smlsharp/nixpkgs";
  input.smlsharp.inputs.nixpkgs.follows = "nixpkgs";
  outputs =
    { self, nixpkgs, smlsharp }:
    {
      nixosConfigurations.default = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          { nixpkgs.overlays = [ smlsharp.overlays.packages ]; }
          ./configuratrion.nix
        ];
      };
    };
}

Build Environment

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.

License

MIT

About

SML# package repository for Nix/NixOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages