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
+4 -4
View File
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "03cp2ppj07xpb0c43d3cr8m9jps07mfm8clmlk03sjbxg1widsh0";
};
postPatch = stdenv.lib.optionalString (batchSize != null) ''
postPatch = lib.optionalString (batchSize != null) ''
sed -i lib/mu-store.cc --regexp-extended \
-e 's@(constexpr auto BatchSize).*@\1 = ${toString batchSize};@'
'';
@@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
sqlite xapian glib gmime3 texinfo emacs libsoup icu
]
# Workaround for https://github.com/djcb/mu/issues/1641
++ stdenv.lib.optional (!stdenv.isDarwin) guile
++ stdenv.lib.optionals withMug [ gtk3 webkitgtk ];
++ lib.optional (!stdenv.isDarwin) guile
++ lib.optionals withMug [ gtk3 webkitgtk ];
nativeBuildInputs = [ pkgconfig autoreconfHook pmccabe ];
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
'';
# Install mug
postInstall = stdenv.lib.optionalString withMug ''
postInstall = lib.optionalString withMug ''
for f in mug ; do
install -m755 toys/$f/$f $out/bin/$f
done