summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/drivers
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2021-01-15 20:21:58 +0700
committerBen Siraphob <bensiraphob@gmail.com>2021-01-16 17:58:11 +0700
commitbadf51221db8fae81bf9948c39eaf8342dfd5597 (patch)
tree34eeb35ca97f0b081da465e9ddd6c120a9d2b7df /pkgs/misc/drivers
parenta9bb54359eeedf2594fdf191de5b673fd1dd102d (diff)
treewide: stdenv.lib -> lib
Diffstat (limited to 'pkgs/misc/drivers')
-rw-r--r--pkgs/misc/drivers/epkowa/default.nix14
-rw-r--r--pkgs/misc/drivers/epson-alc1100/default.nix4
-rw-r--r--pkgs/misc/drivers/foomatic-filters/default.nix8
-rw-r--r--pkgs/misc/drivers/gutenprint/bin.nix4
-rw-r--r--pkgs/misc/drivers/hplip/3.16.11.nix4
-rw-r--r--pkgs/misc/drivers/hplip/3.18.5.nix8
-rw-r--r--pkgs/misc/drivers/hplip/default.nix12
-rw-r--r--pkgs/misc/drivers/sundtek/default.nix4
-rw-r--r--pkgs/misc/drivers/xwiimote/default.nix6
9 files changed, 32 insertions, 32 deletions
diff --git a/pkgs/misc/drivers/epkowa/default.nix b/pkgs/misc/drivers/epkowa/default.nix
index 9054c4c48f8a..407eef06773e 100644
--- a/pkgs/misc/drivers/epkowa/default.nix
+++ b/pkgs/misc/drivers/epkowa/default.nix
@@ -1,4 +1,4 @@
-{ stdenv
+{ lib, stdenv
, fetchurl
, fetchpatch
, makeWrapper
@@ -19,8 +19,8 @@
}:
let common_meta = {
homepage = "http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX";
- license = with stdenv.lib.licenses; epson;
- platforms = with stdenv.lib.platforms; linux;
+ license = with lib.licenses; epson;
+ platforms = with lib.platforms; linux;
};
in
############################
@@ -261,7 +261,7 @@ let plugins = {
in
let fwdir = symlinkJoin {
name = "esci-firmware-dir";
- paths = stdenv.lib.mapAttrsToList (name: value: value + /share/esci) plugins;
+ paths = lib.mapAttrsToList (name: value: value + /share/esci) plugins;
};
in
let iscan-data = stdenv.mkDerivation rec {
@@ -337,7 +337,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/iscan-registry --prefix PATH : ${getopt}/bin
registry=$out/bin/iscan-registry;
'' +
- stdenv.lib.concatStrings (stdenv.lib.mapAttrsToList
+ lib.concatStrings (lib.mapAttrsToList
(name: value: ''
plugin=${value};
${value.passthru.registrationCommand}
@@ -349,7 +349,7 @@ stdenv.mkDerivation rec {
Includes gui-less iscan (aka. Image Scan! for Linux).
Supported hardware: at least :
'' +
- stdenv.lib.concatStringsSep ", " (stdenv.lib.mapAttrsToList (name: value: value.passthru.hw) plugins);
- maintainers = with stdenv.lib.maintainers; [ symphorien dominikh ];
+ lib.concatStringsSep ", " (lib.mapAttrsToList (name: value: value.passthru.hw) plugins);
+ maintainers = with lib.maintainers; [ symphorien dominikh ];
};
}
diff --git a/pkgs/misc/drivers/epson-alc1100/default.nix b/pkgs/misc/drivers/epson-alc1100/default.nix
index fc467e8a4d2d..2a0fd92867ee 100644
--- a/pkgs/misc/drivers/epson-alc1100/default.nix
+++ b/pkgs/misc/drivers/epson-alc1100/default.nix
@@ -33,12 +33,12 @@ in
postFixup = ''
patchelf --set-interpreter ${pkgsi686Linux.glibc}/lib/ld-linux.so.2 \
- --set-rpath "${stdenv.lib.makeLibraryPath [
+ --set-rpath "${lib.makeLibraryPath [
pkgsi686Linux.glibc
"$out"
]}" $out/bin/alc1100
- patchelf --set-rpath "${stdenv.lib.makeLibraryPath [
+ patchelf --set-rpath "${lib.makeLibraryPath [
pkgsi686Linux.glibc
]}" $out/lib/libstdc++.so.5.0.7
diff --git a/pkgs/misc/drivers/foomatic-filters/default.nix b/pkgs/misc/drivers/foomatic-filters/default.nix
index 3ca64e0e8f8f..eae437b0a4dd 100644
--- a/pkgs/misc/drivers/foomatic-filters/default.nix
+++ b/pkgs/misc/drivers/foomatic-filters/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchpatch, fetchurl, pkgconfig, perl, cups, dbus, enscript }:
+{ lib, stdenv, fetchpatch, fetchurl, pkgconfig, perl, cups, dbus, enscript }:
stdenv.mkDerivation rec {
name = "foomatic-filters-4.0.17";
@@ -33,8 +33,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Foomatic printing filters";
- maintainers = [ stdenv.lib.maintainers.raskin ];
- platforms = stdenv.lib.platforms.linux;
- license = stdenv.lib.licenses.gpl2Plus;
+ maintainers = [ lib.maintainers.raskin ];
+ platforms = lib.platforms.linux;
+ license = lib.licenses.gpl2Plus;
};
}
diff --git a/pkgs/misc/drivers/gutenprint/bin.nix b/pkgs/misc/drivers/gutenprint/bin.nix
index 4adb96e1299e..58b77cb91071 100644
--- a/pkgs/misc/drivers/gutenprint/bin.nix
+++ b/pkgs/misc/drivers/gutenprint/bin.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, rpm, cpio, zlib }:
+{ lib, stdenv, fetchurl, rpm, cpio, zlib }:
/* usage: (sorry, its still impure but works!)
@@ -36,7 +36,7 @@ stdenv.mkDerivation {
phases = "buildPhase";
- libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc zlib ];
+ libPath = lib.makeLibraryPath [ stdenv.cc.cc zlib ];
buildPhase = ''
ar -x $src data.tar.gz
diff --git a/pkgs/misc/drivers/hplip/3.16.11.nix b/pkgs/misc/drivers/hplip/3.16.11.nix
index c48c5bff4bf3..128a5e39df7d 100644
--- a/pkgs/misc/drivers/hplip/3.16.11.nix
+++ b/pkgs/misc/drivers/hplip/3.16.11.nix
@@ -69,7 +69,7 @@ python2Packages.buildPythonApplication {
pygobject2
reportlab
usbutils
- ] ++ stdenv.lib.optionals qtSupport [
+ ] ++ lib.optionals qtSupport [
pyqt4
];
@@ -111,7 +111,7 @@ python2Packages.buildPythonApplication {
enableParallelBuilding = true;
- postInstall = stdenv.lib.optionalString withPlugin ''
+ postInstall = lib.optionalString withPlugin ''
sh ${plugin} --noexec --keep
cd plugin_tmp
diff --git a/pkgs/misc/drivers/hplip/3.18.5.nix b/pkgs/misc/drivers/hplip/3.18.5.nix
index c7e1f47e2e52..9622382e1214 100644
--- a/pkgs/misc/drivers/hplip/3.18.5.nix
+++ b/pkgs/misc/drivers/hplip/3.18.5.nix
@@ -76,7 +76,7 @@ python2Packages.buildPythonApplication {
reportlab
usbutils
sip
- ] ++ stdenv.lib.optionals withQt5 [
+ ] ++ lib.optionals withQt5 [
pyqt5
];
@@ -108,9 +108,9 @@ python2Packages.buildPythonApplication {
--with-systraydir=$out/xdg/autostart
--with-mimedir=$out/etc/cups
--enable-policykit
- ${stdenv.lib.optionalString withStaticPPDInstall "--enable-cups-ppd-install"}
+ ${lib.optionalString withStaticPPDInstall "--enable-cups-ppd-install"}
--disable-qt4
- ${stdenv.lib.optionalString withQt5 "--enable-qt5"}
+ ${lib.optionalString withQt5 "--enable-qt5"}
"
export makeFlags="
@@ -136,7 +136,7 @@ python2Packages.buildPythonApplication {
# Running `hp-diagnose_plugin -g` can be used to diagnose
# issues with plugins.
#
- postInstall = stdenv.lib.optionalString withPlugin ''
+ postInstall = lib.optionalString withPlugin ''
sh ${plugin} --noexec --keep
cd plugin_tmp
diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix
index b20797808af5..ed0d5183347d 100644
--- a/pkgs/misc/drivers/hplip/default.nix
+++ b/pkgs/misc/drivers/hplip/default.nix
@@ -71,7 +71,7 @@ python3Packages.buildPythonApplication {
nativeBuildInputs = [
pkgconfig
removeReferencesTo
- ] ++ stdenv.lib.optional withQt5 qt5.wrapQtAppsHook;
+ ] ++ lib.optional withQt5 qt5.wrapQtAppsHook;
pythonPath = with python3Packages; [
dbus
@@ -81,7 +81,7 @@ python3Packages.buildPythonApplication {
usbutils
sip
dbus-python
- ] ++ stdenv.lib.optionals withQt5 [
+ ] ++ lib.optionals withQt5 [
pyqt5
enum-compat
];
@@ -127,9 +127,9 @@ python3Packages.buildPythonApplication {
--with-systraydir=$out/xdg/autostart
--with-mimedir=$out/etc/cups
--enable-policykit
- ${stdenv.lib.optionalString withStaticPPDInstall "--enable-cups-ppd-install"}
+ ${lib.optionalString withStaticPPDInstall "--enable-cups-ppd-install"}
--disable-qt4
- ${stdenv.lib.optionalString withQt5 "--enable-qt5"}
+ ${lib.optionalString withQt5 "--enable-qt5"}
"
export makeFlags="
@@ -155,7 +155,7 @@ python3Packages.buildPythonApplication {
# Running `hp-diagnose_plugin -g` can be used to diagnose
# issues with plugins.
#
- postInstall = stdenv.lib.optionalString withPlugin ''
+ postInstall = lib.optionalString withPlugin ''
sh ${plugin} --noexec --keep
cd plugin_tmp
@@ -229,7 +229,7 @@ python3Packages.buildPythonApplication {
--replace {,${util-linux}/bin/}logger \
--replace {/usr,$out}/bin
remove-references-to -t ${stdenv.cc.cc} $(readlink -f $out/lib/*.so)
- '' + stdenv.lib.optionalString withQt5 ''
+ '' + lib.optionalString withQt5 ''
for f in $out/bin/hp-*;do
wrapQtApp $f
done
diff --git a/pkgs/misc/drivers/sundtek/default.nix b/pkgs/misc/drivers/sundtek/default.nix
index b94a09782845..d52f9dd7cde3 100644
--- a/pkgs/misc/drivers/sundtek/default.nix
+++ b/pkgs/misc/drivers/sundtek/default.nix
@@ -1,6 +1,6 @@
-{ fetchurl, stdenv }:
+{ fetchurl, lib, stdenv }:
-with stdenv.lib;
+with lib;
let
version = "2016-01-26";
diff --git a/pkgs/misc/drivers/xwiimote/default.nix b/pkgs/misc/drivers/xwiimote/default.nix
index 3b7b42990af4..a9e3d42ef9f2 100644
--- a/pkgs/misc/drivers/xwiimote/default.nix
+++ b/pkgs/misc/drivers/xwiimote/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, udev, ncurses, pkgconfig, fetchurl, bluez }:
+{ lib, stdenv, udev, ncurses, pkgconfig, fetchurl, bluez }:
stdenv.mkDerivation rec {
name = "xwiimote-2";
@@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://dvdhrm.github.io/xwiimote";
description = "Userspace utilities to control connected Nintendo Wii Remotes";
- platforms = stdenv.lib.platforms.linux;
- license = stdenv.lib.licenses.mit;
+ platforms = lib.platforms.linux;
+ license = lib.licenses.mit;
};
postInstallPhase = ''