treewide: stdenv.lib -> lib
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ fetchurl, stdenv }:
|
||||
{ fetchurl, lib, stdenv }:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
let
|
||||
version = "2016-01-26";
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user