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

This commit is contained in:
Ben Siraphob
2021-01-22 00:00:13 +07:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, ninja
{ lib, stdenv, fetchFromGitHub, cmake, ninja
, secureBuild ? false
}:
@@ -17,10 +17,10 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ninja ];
cmakeFlags = stdenv.lib.optional secureBuild [ "-DMI_SECURE=ON" ];
cmakeFlags = lib.optional secureBuild [ "-DMI_SECURE=ON" ];
postInstall = let
rel = stdenv.lib.versions.majorMinor version;
rel = lib.versions.majorMinor version;
in ''
# first, install headers, that's easy
mkdir -p $dev
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Compact, fast, general-purpose memory allocator";
homepage = "https://github.com/microsoft/mimalloc";
license = licenses.bsd2;