diff options
author | Troels Henriksen <athas@sigkill.dk> | 2023-11-17 13:41:00 +0100 |
---|---|---|
committer | Troels Henriksen <athas@sigkill.dk> | 2023-11-29 08:58:04 +0100 |
commit | 2d2ddb83ba9eecf85d339c11cdc8cfb5d919dc6a (patch) | |
tree | f4994a16b09b2f092908d3ab0a63d81d0106f1d0 /pkgs/by-name/sm/smlfut | |
parent | cf194054c0d19509b84b4ee1a669a181eb64ef9f (diff) |
smlfut: init at 1.1.0
Diffstat (limited to 'pkgs/by-name/sm/smlfut')
-rw-r--r-- | pkgs/by-name/sm/smlfut/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/sm/smlfut/package.nix b/pkgs/by-name/sm/smlfut/package.nix new file mode 100644 index 0000000000000..7bb3c7c05f2a8 --- /dev/null +++ b/pkgs/by-name/sm/smlfut/package.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, fetchFromGitHub, mlton, futhark }: + +stdenv.mkDerivation rec { + pname = "smlfut"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "diku-dk"; + repo = "smlfut"; + rev = "v${version}"; + hash = "sha256-Ta0nCVD8N1k88sCdN4RhcugBgkQE7NdclCUtubgS6HM="; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ mlton ]; + + env.MLCOMP = "mlton"; + + installFlags = ["PREFIX=$(out)"]; + + doCheck = true; + + nativeCheckInputs = [ futhark ]; + + checkTarget = "run_test"; + + meta = with lib; { + description = "Allow SML programs to call Futhark programs"; + homepage = "https://github.com/diku-dk/smlfut"; + license = licenses.gpl3Plus; + platforms = mlton.meta.platforms; + maintainers = with maintainers; [ athas ]; + mainProgram = "smlfut"; + }; +} |