pkgs/development/tools: stdenv.lib -> lib
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
{ stdenv, nodePackages }:
|
||||
{ lib, stdenv, nodePackages }:
|
||||
|
||||
let
|
||||
linkNodeDeps = ({ pkg, deps, name ? "" }:
|
||||
let
|
||||
targetModule = if name != "" then name else stdenv.lib.getName pkg;
|
||||
targetModule = if name != "" then name else lib.getName pkg;
|
||||
in nodePackages.${pkg}.override (oldAttrs: {
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/node_modules/${targetModule}/node_modules
|
||||
${stdenv.lib.concatStringsSep "\n" (map (dep: ''
|
||||
ln -s ${nodePackages.${dep}}/lib/node_modules/${stdenv.lib.getName dep} \
|
||||
$out/lib/node_modules/${targetModule}/node_modules/${stdenv.lib.getName dep}
|
||||
${lib.concatStringsSep "\n" (map (dep: ''
|
||||
ln -s ${nodePackages.${dep}}/lib/node_modules/${lib.getName dep} \
|
||||
$out/lib/node_modules/${targetModule}/node_modules/${lib.getName dep}
|
||||
'') deps
|
||||
)}
|
||||
'';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, cmake, fetchFromGitHub, python3, flex, bison, qt5, CoreServices, libiconv }:
|
||||
{ lib, stdenv, cmake, fetchFromGitHub, python3, flex, bison, qt5, CoreServices, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "doxygen";
|
||||
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "doxygen";
|
||||
repo = "doxygen";
|
||||
rev = "Release_${stdenv.lib.replaceStrings [ "." ] [ "_" ] version}";
|
||||
rev = "Release_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
||||
sha256 = "17chvi3i80rj4750smpizf562xjzd2xcv5rfyh997pyvc1zbq5rh";
|
||||
};
|
||||
|
||||
@@ -19,21 +19,21 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
stdenv.lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ])
|
||||
++ stdenv.lib.optional stdenv.isSunOS libiconv
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
|
||||
lib.optionals (qt5 != null) (with qt5; [ qtbase wrapQtAppsHook ])
|
||||
++ lib.optional stdenv.isSunOS libiconv
|
||||
++ lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
|
||||
|
||||
cmakeFlags =
|
||||
[ "-DICONV_INCLUDE_DIR=${libiconv}/include" ] ++
|
||||
stdenv.lib.optional (qt5 != null) "-Dbuild_wizard=YES";
|
||||
lib.optional (qt5 != null) "-Dbuild_wizard=YES";
|
||||
|
||||
NIX_CFLAGS_COMPILE =
|
||||
stdenv.lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9";
|
||||
lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9";
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
||||
meta = {
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
homepage = "http://doxygen.nl/";
|
||||
description = "Source code documentation generator tool";
|
||||
|
||||
@@ -45,6 +45,6 @@ stdenv.mkDerivation rec {
|
||||
manual (in LaTeX) from a set of documented source files.
|
||||
'';
|
||||
|
||||
platforms = if qt5 != null then stdenv.lib.platforms.linux else stdenv.lib.platforms.unix;
|
||||
platforms = if qt5 != null then lib.platforms.linux else lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkg-config, libxml2Python, libxslt, intltool, gnome3
|
||||
{ lib, stdenv, fetchurl, pkg-config, libxml2Python, libxslt, intltool, gnome3
|
||||
, python2Packages }:
|
||||
|
||||
python2Packages.buildPythonApplication rec {
|
||||
@@ -8,7 +8,7 @@ python2Packages.buildPythonApplication rec {
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb";
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ python2Packages.buildPythonApplication rec {
|
||||
rm $out/nix-support/propagated-build-inputs
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Collection of documentation utilities for the GNOME project";
|
||||
homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
|
||||
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitLab
|
||||
, meson
|
||||
, ninja
|
||||
@@ -44,7 +44,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
docbook_xml_dtd_43
|
||||
docbook_xsl
|
||||
libxslt
|
||||
] ++ stdenv.lib.optionals withDblatex [
|
||||
] ++ lib.optionals withDblatex [
|
||||
dblatex
|
||||
];
|
||||
|
||||
@@ -77,7 +77,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Tools to extract documentation embedded in GTK and GNOME source code";
|
||||
homepage = "https://www.gtk.org/gtk-doc";
|
||||
license = licenses.gpl2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform }:
|
||||
{ lib, stdenv, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdsh";
|
||||
@@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoSha256 = "118ykkqlf0x6gcgywx4pg3qawfhfr5q5f51gvrw9s302c1lmgk3g";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Markdown shell pre-processor";
|
||||
homepage = "https://github.com/zimbatm/mdsh";
|
||||
license = with licenses; [ mit ];
|
||||
|
||||
@@ -35,7 +35,7 @@ buildPythonApplication rec {
|
||||
backports_tempfile
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Project documentation with Markdown / static website generator";
|
||||
longDescription = ''
|
||||
MkDocs is a fast, simple and downright gorgeous static site generator that's
|
||||
|
||||
Reference in New Issue
Block a user