1 { lib, stdenv, fetchFromGitHub, pkg-config, mlton }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-qwhYOZrck028NliPDnqFZel3IxopQzouhHq6R7DkfPE=";
14 nativeBuildInputs = [ mlton ];
18 install -Dm755 -t $out/bin smlfmt
23 description = "A custom parser/auto-formatter for Standard ML";
24 mainProgram = "smlfmt";
26 A custom parser and code formatter for Standard ML, with helpful error messages.
28 Supports SML source files (.sml, .sig, .fun, etc.) as well as MLBasis
29 compilation files (.mlb) using MLton conventions, including MLBasis path
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ munksgaard ];
35 platforms = mlton.meta.platforms;
36 homepage = "https://github.com/shwestrick/smlfmt";