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

This commit is contained in:
Ben Siraphob
2021-01-21 19:11:02 -08:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions
+6 -6
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchFromBitbucket, cmake, nasm, numactl
{ lib, stdenv, fetchFromBitbucket, cmake, nasm, numactl
, numaSupport ? stdenv.hostPlatform.isLinux && (stdenv.hostPlatform.isx86 || stdenv.hostPlatform.isAarch64) # Enabled by default on NUMA platforms
, debugSupport ? false # Run-time sanity checks (debugging)
, werrorSupport ? false # Warnings as errors
@@ -21,7 +21,7 @@ let
(mkFlag custatsSupport "DETAILED_CU_STATS")
(mkFlag unittestsSupport "ENABLE_TESTS")
(mkFlag werrorSupport "WARNINGS_AS_ERRORS")
] ++ stdenv.lib.optionals stdenv.hostPlatform.isPower [
] ++ lib.optionals stdenv.hostPlatform.isPower [
"-DENABLE_ALTIVEC=OFF"
];
@@ -56,7 +56,7 @@ let
cd source
'';
nativeBuildInputs = [cmake nasm] ++ stdenv.lib.optional numaSupport numactl;
nativeBuildInputs = [cmake nasm] ++ lib.optional numaSupport numactl;
};
libx265-10 = buildLib false;
@@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
"-DENABLE_SHARED=ON"
"-DHIGH_BIT_DEPTH=OFF"
"-DENABLE_HDR10_PLUS=OFF"
] ++ stdenv.lib.optionals (is64bit && !(stdenv.isAarch64 && stdenv.isLinux)) [
] ++ lib.optionals (is64bit && !(stdenv.isAarch64 && stdenv.isLinux)) [
"-DEXTRA_LIB=${libx265-10}/lib/libx265.a;${libx265-12}/lib/libx265.a"
"-DLINKED_10BIT=ON"
"-DLINKED_12BIT=ON"
@@ -92,9 +92,9 @@ stdenv.mkDerivation rec {
rm $out/lib/*.a
'';
nativeBuildInputs = [ cmake nasm ] ++ stdenv.lib.optional numaSupport numactl;
nativeBuildInputs = [ cmake nasm ] ++ lib.optional numaSupport numactl;
meta = with stdenv.lib; {
meta = with lib; {
description = "Library for encoding h.265/HEVC video streams";
homepage = "http://x265.org";
license = licenses.gpl2;