pkgs/development/compilers: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-23 08:57:37 +07:00
parent bbaff89ceb
commit acc5f7b18a
320 changed files with 1660 additions and 1657 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchurl, makeWrapper, pcre2, coreutils, which, libressl, libxml2, cmake, z3, substituteAll,
{ lib, stdenv, fetchFromGitHub, fetchurl, makeWrapper, pcre2, coreutils, which, libressl, libxml2, cmake, z3, substituteAll,
cc ? stdenv.cc, lto ? !stdenv.isDarwin }:
stdenv.mkDerivation (rec {
@@ -80,8 +80,8 @@ stdenv.mkDerivation (rec {
"PONYC_VERSION=${version}"
"prefix=${placeholder "out"}"
]
++ stdenv.lib.optionals stdenv.isDarwin [ "bits=64" ]
++ stdenv.lib.optionals (stdenv.isDarwin && (!lto)) [ "lto=no" ];
++ lib.optionals stdenv.isDarwin [ "bits=64" ]
++ lib.optionals (stdenv.isDarwin && (!lto)) [ "lto=no" ];
doCheck = true;
@@ -89,20 +89,20 @@ stdenv.mkDerivation (rec {
installPhase = ''
make config=release prefix=$out ''
+ stdenv.lib.optionalString stdenv.isDarwin '' bits=64 ''
+ stdenv.lib.optionalString (stdenv.isDarwin && (!lto)) '' lto=no ''
+ lib.optionalString stdenv.isDarwin '' bits=64 ''
+ lib.optionalString (stdenv.isDarwin && (!lto)) '' lto=no ''
+ '' install
wrapProgram $out/bin/ponyc \
--prefix PATH ":" "${stdenv.cc}/bin" \
--set-default CC "$CC" \
--prefix PONYPATH : "${stdenv.lib.makeLibraryPath [ pcre2 libressl (placeholder "out") ]}"
--prefix PONYPATH : "${lib.makeLibraryPath [ pcre2 libressl (placeholder "out") ]}"
'';
# Stripping breaks linking for ponyc
dontStrip = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Pony is an Object-oriented, actor-model, capabilities-secure, high performance programming language";
homepage = "https://www.ponylang.org";
license = licenses.bsd2;
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ponyc }:
{ lib, stdenv, fetchFromGitHub, ponyc }:
stdenv.mkDerivation ( rec {
pname = "corral";
@@ -15,7 +15,7 @@ stdenv.mkDerivation ( rec {
installFlags = [ "prefix=${placeholder "out"}" "install" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Corral is a dependency management tool for ponylang (ponyc)";
homepage = "https://www.ponylang.io";
license = licenses.bsd2;
@@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, ponyc }:
{lib, stdenv, fetchFromGitHub, ponyc }:
stdenv.mkDerivation rec {
pname = "pony-stable";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = {
description = "A simple dependency manager for the Pony language";
homepage = "https://www.ponylang.org";
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ dipinhora kamilchm patternspandemic ];
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ dipinhora kamilchm patternspandemic ];
platforms = lib.platforms.unix;
};
}