pkgs/development/compilers: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, autoreconfHook}:
|
||||
{lib, stdenv, fetchurl, autoreconfHook}:
|
||||
|
||||
let
|
||||
version = "5.6";
|
||||
@@ -8,11 +8,11 @@ stdenv.mkDerivation {
|
||||
pname = "polyml";
|
||||
inherit version;
|
||||
|
||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure.ac --replace stdc++ c++
|
||||
'';
|
||||
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
||||
buildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/polyml/polyml.${version}.tar.gz";
|
||||
@@ -25,10 +25,10 @@ stdenv.mkDerivation {
|
||||
Poly/ML is a full implementation of Standard ML.
|
||||
'';
|
||||
homepage = "https://www.polyml.org/";
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
license = lib.licenses.lgpl21;
|
||||
platforms = with lib.platforms; linux;
|
||||
maintainers = [ #Add your name here!
|
||||
stdenv.lib.maintainers.maggesi
|
||||
lib.maintainers.maggesi
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, gmp, libffi }:
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gmp, libffi }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "polyml";
|
||||
version = "5.7.1";
|
||||
|
||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure.ac --replace stdc++ c++
|
||||
'';
|
||||
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ libffi gmp ];
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
||||
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
||||
|
||||
configureFlags = [
|
||||
"--enable-shared"
|
||||
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0j0wv3ijfrjkfngy7dswm4k1dchk3jak9chl5735dl8yrl8mq755";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Standard ML compiler and interpreter";
|
||||
longDescription = ''
|
||||
Poly/ML is a full implementation of Standard ML.
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, gmp, libffi }:
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, gmp, libffi }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "polyml";
|
||||
version = "5.8.1";
|
||||
|
||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure.ac --replace stdc++ c++
|
||||
'';
|
||||
|
||||
buildInputs = [ libffi gmp ];
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
||||
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
||||
|
||||
configureFlags = [
|
||||
"--enable-shared"
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0gcx2fjiwsiazlyfhm7zlrd563blc4fy9w2mspib9divbavaxin6";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Standard ML compiler and interpreter";
|
||||
longDescription = ''
|
||||
Poly/ML is a full implementation of Standard ML.
|
||||
|
||||
Reference in New Issue
Block a user