mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
c381bdc1c5
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/polyml/versions. These checks were done: - built on NixOS - ran `/nix/store/ac6iwd3ixncb9cqjg59fbj2nzcfmsqgn-polyml-5.7.1/bin/poly --help` got 0 exit code - ran `/nix/store/ac6iwd3ixncb9cqjg59fbj2nzcfmsqgn-polyml-5.7.1/bin/poly -v` and found version 5.7.1 - ran `/nix/store/ac6iwd3ixncb9cqjg59fbj2nzcfmsqgn-polyml-5.7.1/bin/poly --help` and found version 5.7.1 - ran `/nix/store/ac6iwd3ixncb9cqjg59fbj2nzcfmsqgn-polyml-5.7.1/bin/polyc --help` got 0 exit code - ran `/nix/store/ac6iwd3ixncb9cqjg59fbj2nzcfmsqgn-polyml-5.7.1/bin/polyc --help` and found version 5.7.1 - found 5.7.1 with grep in /nix/store/ac6iwd3ixncb9cqjg59fbj2nzcfmsqgn-polyml-5.7.1 - directory tree listing: https://gist.github.com/e23988ea219cf9deddb7b7c0578cfd89
39 lines
984 B
Nix
39 lines
984 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, gmp, libffi }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "polyml-${version}";
|
|
version = "5.7.1";
|
|
|
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace configure.ac --replace stdc++ c++
|
|
'';
|
|
|
|
buildInputs = [ libffi gmp ];
|
|
|
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
|
|
|
configureFlags = [
|
|
"--enable-shared"
|
|
"--with-system-libffi"
|
|
"--with-gmp"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "polyml";
|
|
repo = "polyml";
|
|
rev = "v${version}";
|
|
sha256 = "0j0wv3ijfrjkfngy7dswm4k1dchk3jak9chl5735dl8yrl8mq755";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Standard ML compiler and interpreter";
|
|
longDescription = ''
|
|
Poly/ML is a full implementation of Standard ML.
|
|
'';
|
|
homepage = http://www.polyml.org/;
|
|
license = licenses.lgpl21;
|
|
platforms = with platforms; (linux ++ darwin);
|
|
maintainers = with maintainers; [ z77z yurrriq ];
|
|
};
|
|
}
|