pkgs/tools: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, rustPlatform, fetchFromGitHub }:
|
||||
{ lib, stdenv, rustPlatform, fetchFromGitHub }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "evscript";
|
||||
@@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
|
||||
cargoSha256 = "1dcyhxfyq0nrjl05g1s9pjkg7vqw63wbdhlskrdcvxncmci3s7rp";
|
||||
verifyCargoDeps = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/myfreeweb/${pname}";
|
||||
description = "A tiny sandboxed Dyon scripting environment for evdev input devices";
|
||||
license = licenses.unlicense;
|
||||
|
||||
@@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
|
||||
cp ${dicts} src/module/spell/dict/$(stripHash ${dicts})
|
||||
cp ${table} src/im/table/data/$(stripHash ${table})
|
||||
''
|
||||
+ stdenv.lib.optionalString withPinyin ''
|
||||
+ lib.optionalString withPinyin ''
|
||||
cp ${pystroke-data} src/module/pinyin-enhance/data/$(stripHash ${pystroke-data})
|
||||
cp ${pytable-data} src/module/pinyin-enhance/data/$(stripHash ${pytable-data})
|
||||
cp ${pinyin-data} src/im/pinyin/data/$(stripHash ${pinyin-data})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
@@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
|
||||
libxkbfile
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Next generation of fcitx";
|
||||
homepage = "https://github.com/fcitx/fcitx5";
|
||||
license = licenses.lgpl21Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, mkDerivation
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
@@ -64,9 +64,9 @@ mkDerivation rec {
|
||||
opencc
|
||||
qtwebengine
|
||||
fmt
|
||||
] ++ stdenv.lib.optional luaSupport fcitx5-lua;
|
||||
] ++ lib.optional luaSupport fcitx5-lua;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Addons related to Chinese, including IME previous bundled inside fcitx4";
|
||||
homepage = "https://github.com/fcitx/fcitx5-chinese-addons";
|
||||
license = with licenses; [ gpl2Plus lgpl21Plus ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
@@ -45,12 +45,12 @@ mkDerivation rec {
|
||||
xkeyboardconfig
|
||||
libxkbfile
|
||||
libXdmcp
|
||||
] ++ stdenv.lib.optionals kcmSupport [
|
||||
] ++ lib.optionals kcmSupport [
|
||||
kdeclarative
|
||||
kwidgetsaddons
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Configuration Tool for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-configtool";
|
||||
license = licenses.gpl2Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = [
|
||||
"-DGOBJECT_INTROSPECTION_GIRDIR=share/gir-1.0"
|
||||
"-DGOBJECT_INTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
|
||||
] ++ stdenv.lib.optional (! withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
|
||||
] ++ lib.optional (! withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
@@ -54,14 +54,14 @@ stdenv.mkDerivation rec {
|
||||
dbus
|
||||
at-spi2-core
|
||||
libXtst
|
||||
] ++ stdenv.lib.optional withGTK2 gtk2;
|
||||
] ++ lib.optional withGTK2 gtk2;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Fcitx5 gtk im module and glib based dbus client library";
|
||||
homepage = "https://github.com/fcitx/fcitx5-gtk";
|
||||
license = licenses.lgpl21Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||
gettext
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Lua support for Fcitx 5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-lua";
|
||||
license = licenses.lgpl21Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
@@ -36,7 +36,7 @@ mkDerivation rec {
|
||||
libXdmcp
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Fcitx5 Qt Library";
|
||||
homepage = "https://github.com/fcitx/fcitx5-qt";
|
||||
license = with licenses; [ lgpl21Plus bsd3 ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, pkgconfig
|
||||
@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
||||
librime
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "RIME support for Fcitx5";
|
||||
homepage = "https://github.com/fcitx/fcitx5-rime";
|
||||
license = licenses.lgpl21Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
fcitx5
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Extra table for Fcitx, including Boshiamy, Zhengma, Cangjie, and Quick";
|
||||
homepage = "https://github.com/fcitx/fcitx5-table-extra";
|
||||
license = licenses.gpl2Only;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
fcitx5
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Some other tables for Fcitx";
|
||||
homepage = "https://github.com/fcitx/fcitx5-table-other";
|
||||
license = licenses.gpl3Only;
|
||||
|
||||
@@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
|
||||
postUnpack = ''
|
||||
rm -rf $sourceRoot/src/third_party/japanese_usage_dictionary/
|
||||
ln -s ${japanese_usage_dictionary} $sourceRoot/src/third_party/japanese_usage_dictionary
|
||||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
sed -i 's/-lc++/-lstdc++/g' $sourceRoot/src/gyp/common.gypi
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, substituteAll
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
assert withWayland -> wayland != null && libxkbcommon != null;
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
let
|
||||
python3Runtime = python3.withPackages (ps: with ps; [ pygobject3 ]);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ stdenv, runCommand, makeWrapper, lndir
|
||||
{ lib, stdenv, runCommand, makeWrapper, lndir
|
||||
, dconf, hicolor-icon-theme, ibus, librsvg, plugins ? []
|
||||
}:
|
||||
|
||||
let
|
||||
name = "ibus-with-plugins-" + stdenv.lib.getVersion ibus;
|
||||
name = "ibus-with-plugins-" + lib.getVersion ibus;
|
||||
env = {
|
||||
buildInputs = [ ibus ] ++ plugins;
|
||||
nativeBuildInputs = [ lndir makeWrapper ];
|
||||
@@ -25,7 +25,7 @@ let
|
||||
wrapProgram "$out/bin/$prog" \
|
||||
--set GDK_PIXBUF_MODULE_FILE ${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
|
||||
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
|
||||
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/" \
|
||||
--set IBUS_DATAROOTDIR "$out/share" \
|
||||
--set IBUS_LIBEXECDIR "$out/libexec" \
|
||||
@@ -44,7 +44,7 @@ let
|
||||
wrapProgram "$out/bin/$prog" \
|
||||
--set GDK_PIXBUF_MODULE_FILE ${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
|
||||
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
|
||||
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/" \
|
||||
--set IBUS_DATAROOTDIR "$out/share" \
|
||||
--set IBUS_LIBEXECDIR "$out/libexec" \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, cmake, libyamlcpp,
|
||||
{ lib, stdenv, fetchurl, pkgconfig, cmake, libyamlcpp,
|
||||
libevdev, udev }:
|
||||
|
||||
let
|
||||
@@ -26,8 +26,8 @@ in stdenv.mkDerivation {
|
||||
meta = {
|
||||
description = "A minimal composable infrastructure on top of libudev and libevdev";
|
||||
homepage = "https://gitlab.com/interception/linux/tools";
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.vyp ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = [ lib.maintainers.vyp ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, gettext }:
|
||||
{ lib, stdenv, fetchurl, gettext }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "m17n-db-1.8.0";
|
||||
@@ -10,15 +10,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ gettext ];
|
||||
|
||||
configureFlags = stdenv.lib.optional (stdenv ? glibc)
|
||||
configureFlags = lib.optional (stdenv ? glibc)
|
||||
"--with-charmaps=${stdenv.glibc.out}/share/i18n/charmaps"
|
||||
;
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.nongnu.org/m17n/";
|
||||
description = "Multilingual text processing library (database)";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ astsmtl ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, m17n_db}:
|
||||
{lib, stdenv, fetchurl, m17n_db}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "m17n-lib-1.8.0";
|
||||
|
||||
@@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "https://www.nongnu.org/m17n/";
|
||||
description = "Multilingual text processing library (runtime)";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ astsmtl ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, libXaw, freetype }:
|
||||
{ lib, stdenv, fetchurl, libXaw, freetype }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libotf-0.9.16";
|
||||
@@ -21,8 +21,8 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "https://www.nongnu.org/m17n/";
|
||||
description = "Multilingual text processing library (libotf)";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ bendlas ];
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ bendlas ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, libiconv, skktools }:
|
||||
{ lib, stdenv, fetchurl, libiconv, skktools }:
|
||||
|
||||
let
|
||||
# kana to kanji
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
||||
pname = "skk-dicts-unstable";
|
||||
version = "2017-10-26";
|
||||
srcs = [ small medium large edict assoc ];
|
||||
nativeBuildInputs = [ skktools ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||
nativeBuildInputs = [ skktools ] ++ lib.optional stdenv.isDarwin libiconv;
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
@@ -66,8 +66,8 @@ stdenv.mkDerivation {
|
||||
dictionaries for the SKK Japanese input method.
|
||||
'';
|
||||
homepage = "https://github.com/skk-dev/dict";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
|
||||
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ yuriaisaka ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, gdbm, glib }:
|
||||
{ lib, stdenv, fetchFromGitHub, pkgconfig, gdbm, glib }:
|
||||
|
||||
# Note (2017-10-24, yuriaisaka):
|
||||
# - Version 1.3.3 dates from Jul. 19, 2013.
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "skk-dev";
|
||||
repo = "skktools";
|
||||
rev = "skktools-${stdenv.lib.replaceStrings ["."] ["_"] version}";
|
||||
rev = "skktools-${lib.replaceStrings ["."] ["_"] version}";
|
||||
sha256 = "1zway8jsm18279xq8zlpr84iqiw373x3v0ysay74n9bjqxbl234a";
|
||||
};
|
||||
# # See "12.2. Package naming"
|
||||
@@ -38,8 +38,8 @@ stdenv.mkDerivation rec {
|
||||
input method.
|
||||
'';
|
||||
homepage = "https://github.com/skk-dev/skktools";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
|
||||
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ yuriaisaka ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, xorg, xorgserver, qt4, libGLU, libGL, geis, qmake4Hook }:
|
||||
{ lib, stdenv, fetchurl, xorg, xorgserver, qt4, libGLU, libGL, geis, qmake4Hook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "touchegg";
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "https://github.com/JoseExposito/touchegg";
|
||||
description = "Macro binding for touch surfaces";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
, withMisc ? false, libeb ? null
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
assert withGtk2 -> gtk2 != null;
|
||||
assert withGtk3 -> gtk3 != null;
|
||||
|
||||
Reference in New Issue
Block a user