treewide: remove implicit use of stdenv.lib

This commit is contained in:
Ben Siraphob
2021-01-27 20:04:57 +07:00
parent 78b5cfc15a
commit 82454e9df8
15 changed files with 35 additions and 42 deletions
@@ -1,6 +1,6 @@
{stdenv, fetchurl, libusb-compat-0_1}:
{lib, stdenv, fetchurl, libusb-compat-0_1}:
with stdenv; mkDerivation rec {
stdenv.mkDerivation rec {
name = "libftdi-0.20";
src = fetchurl {
@@ -14,7 +14,7 @@ with stdenv; mkDerivation rec {
# Hack to avoid TMPDIR in RPATHs.
preFixup = ''rm -rf "$(pwd)" '';
configureFlags = lib.optional (!isDarwin) "--with-async-mode";
configureFlags = lib.optional (!stdenv.isDarwin) "--with-async-mode";
# allow async mode. from ubuntu. see:
# https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/libftdi/trusty/view/head:/debian/patches/04_async_mode.diff