pkgs/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 17:12:36 +07:00
parent 94f3683935
commit 8c5d37129f
916 changed files with 2510 additions and 2510 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, file, licenseFile ? null, optgamsFile ? null}:
{ lib, stdenv, fetchurl, unzip, file, licenseFile ? null, optgamsFile ? null}:
assert licenseFile != null;
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
cp -a * "$out/share/gams"
cp ${licenseFile} $out/share/gams/gamslice.txt
'' + stdenv.lib.optionalString (optgamsFile != null) ''
'' + lib.optionalString (optgamsFile != null) ''
cp ${optgamsFile} $out/share/gams/optgams.def
ln -s $out/share/gams/optgams.def $out/bin/optgams.def
'';
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib;{
meta = with lib;{
description = "General Algebraic Modeling System";
longDescription = ''
The General Algebraic Modeling System is a high-level modeling system for mathematical optimization.