pkgs/development/libraries: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-22 00:00:13 +07:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
version = "5.2";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://commons.apache.org/proper/commons-bcel/";
description = "Gives users a convenient way to analyze, create, and manipulate (binary) Java class files";
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; unix;
maintainers = with lib.maintainers; [ copumpkin ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "commons-bsf-1.2";
@@ -16,8 +16,8 @@ stdenv.mkDerivation {
meta = {
description = "Interface to scripting languages, including JSR-223";
homepage = "http://commons.apache.org/proper/commons-bsf/";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "1.20";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://commons.apache.org/proper/commons-compress";
description = "Allows manipulation of ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200, bzip2, 7z, arj, lzma, snappy, DEFLATE and Z files";
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; unix;
maintainers = with lib.maintainers; [ copumpkin ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
version = "1.3.1";
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://commons.apache.org/proper/commons-fileupload";
description = "Makes it easy to add robust, high-performance, file upload capability to your servlets and web applications";
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; unix;
maintainers = with lib.maintainers; [ copumpkin ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "2.8.0";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://commons.apache.org/proper/commons-io";
description = "A library of utilities to assist with developing IO functionality";
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; unix;
maintainers = with lib.maintainers; [ copumpkin ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "3.11";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://commons.apache.org/proper/commons-lang";
description = "Provides additional methods to manipulate standard Java library classes";
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; unix;
maintainers = with lib.maintainers; [ copumpkin ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "commons-logging-1.2";
@@ -16,8 +16,8 @@ stdenv.mkDerivation {
meta = {
description = "Wrapper around a variety of logging API implementations";
homepage = "http://commons.apache.org/proper/commons-logging";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
version = "3.6.1";
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://commons.apache.org/proper/commons-math/";
description = "A library of lightweight, self-contained mathematics and statistics components";
maintainers = with stdenv.lib.maintainers; [ copumpkin ];
license = stdenv.lib.licenses.asl20;
platforms = with stdenv.lib.platforms; unix;
maintainers = with lib.maintainers; [ copumpkin ];
license = lib.licenses.asl20;
platforms = with lib.platforms; unix;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, jdk, ant } :
{ lib, stdenv, fetchurl, jdk, ant } :
stdenv.mkDerivation rec {
pname = "java-cup";
@@ -31,8 +31,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://www2.cs.tum.edu/projects/cup/";
description = "LALR parser generator for Java";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.romildo ];
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.romildo ];
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, gettext, jdk8, libmatthew_java}:
{lib, stdenv, fetchurl, gettext, jdk8, libmatthew_java}:
let jdk = jdk8; in
stdenv.mkDerivation {
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
-e "s|install: install-bin install-man install-doc|install: install-bin|" Makefile
'';
meta = with stdenv.lib; {
meta = with lib; {
platforms = platforms.linux;
maintainers = [ maintainers.sander ];
license = licenses.afl21;

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, jdk, unzip}:
{lib, stdenv, fetchurl, jdk, unzip}:
stdenv.mkDerivation {
name = "GeoIPJava-1.2.5";
@@ -20,8 +20,8 @@ stdenv.mkDerivation {
'';
meta = {
description = "GeoIP Java API";
license = stdenv.lib.licenses.lgpl21Plus;
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.sander ];
platforms = lib.platforms.unix;
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "gwt-dnd-2.6.5";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "07zdlr8afs499asnw0dcjmw1cnjc646v91lflx5dv4qj374c97fw";
};
meta = with stdenv.lib; {
meta = with lib; {
platforms = platforms.unix;
license = licenses.asl20;
};

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "gwt-widgets-0.2.0";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "09isj4j6842rj13nv8264irkjjhvmgihmi170ciabc98911bakxb";
};
meta = with stdenv.lib; {
meta = with lib; {
platforms = platforms.unix;
license = with licenses; [ afl21 lgpl2 ];
};

View File

@@ -1,9 +1,9 @@
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "hsqldb";
version = "2.5.1";
underscoreMajMin = stdenv.lib.strings.replaceChars ["."] ["_"] (stdenv.lib.versions.majorMinor version);
underscoreMajMin = lib.strings.replaceChars ["."] ["_"] (stdenv.lib.versions.majorMinor version);
src = fetchurl {
url = "mirror://sourceforge/project/hsqldb/hsqldb/hsqldb_${underscoreMajMin}/hsqldb-${version}.zip";
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://hsqldb.org";
description = "A relational, embedable database management system written in Java and a set of related tools";
platforms = platforms.unix;

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip} :
{lib, stdenv, fetchurl, unzip} :
stdenv.mkDerivation {
name = "httpunit-1.7";
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
inherit unzip;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://httpunit.sourceforge.net";
platforms = platforms.unix;
license = licenses.mit;

View File

@@ -1,4 +1,4 @@
{ fetchgit, stdenv, ant, jdk }:
{ fetchgit, lib, stdenv, ant, jdk }:
stdenv.mkDerivation {
pname = "hydra-ant-logger";
@@ -20,6 +20,6 @@ stdenv.mkDerivation {
'';
meta = {
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl} :
{lib, stdenv, fetchurl} :
stdenv.mkDerivation {
name = "jdom-1.0";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "1igmxzcy0s25zcy9vmcw0kd13lh60r0b4qg8lnp1jic33f427pxf";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "Java-based solution for accessing, manipulating, and outputting XML data from Java code";
homepage = "http://www.jdom.org";
platforms = platforms.unix;

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, jre} :
{lib, stdenv, fetchurl, jre} :
stdenv.mkDerivation rec {
name = "jflex-1.8.2";
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://www.jflex.de/";
description = "Lexical analyzer generator for Java, written in Java";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, antBuild, fetchgit, perl }:
{ lib, stdenv, antBuild, fetchgit, perl }:
let
version = "4.11";
@@ -22,7 +22,7 @@ in antBuild {
meta = {
homepage = "http://www.junit.org/";
description = "A framework for repeatable tests in Java";
license = stdenv.lib.licenses.epl10;
license = lib.licenses.epl10;
broken = true;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ant, jdk, junit }:
{ lib, stdenv, fetchurl, ant, jdk, junit }:
stdenv.mkDerivation rec {
name = "junixsocket-1.3";
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
# Note that our OpenJDK on Darwin is currently 32-bit, so we have to build a 32-bit dylib.
(if stdenv.is64bit then [ "-Dskip32=true" ] else [ "-Dskip64=true" ])
++ [ "-Dgcc=cc" "-Dant.build.javac.source=1.6" ]
++ stdenv.lib.optional stdenv.isDarwin "-DisMac=true";
++ lib.optional stdenv.isDarwin "-DisMac=true";
installPhase =
''
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
meta = {
description = "A Java/JNI library for using Unix Domain Sockets from Java";
homepage = "https://github.com/kohlschutter/junixsocket";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
license = lib.licenses.asl20;
platforms = lib.platforms.linux ++ stdenv.lib.platforms.darwin;
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, jdk}:
{lib, stdenv, fetchurl, jdk}:
stdenv.mkDerivation {
name = "libmatthew-java-0.8";
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
PREFIX=''''${out}'';
buildInputs = [ jdk ];
meta = with stdenv.lib; {
meta = with lib; {
platforms = platforms.linux;
maintainers = [ maintainers.sander ];
license = licenses.mit;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, jdk }:
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
stdenv.mkDerivation rec {
name = "lombok-1.18.16";
@@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
meta = {
description = "A library that can write a lot of boilerplate for your Java project";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.mit;
platforms = lib.platforms.all;
license = lib.licenses.mit;
homepage = "https://projectlombok.org/";
maintainers = [ stdenv.lib.maintainers.CrystalGamma ];
maintainers = [ lib.maintainers.CrystalGamma ];
};
}

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl} :
{lib, stdenv, fetchurl} :
stdenv.mkDerivation rec {
pname = "lucene";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "1mxaxg65f7v8n60irjwm24v7hcisbl0srmpvcy1l4scs6rjj1awh";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "Java full-text search engine";
platforms = platforms.unix;
license = licenses.asl20;

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl} :
{lib, stdenv, fetchurl} :
stdenv.mkDerivation {
name = "mockobjects-0.09";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "18rnyqfcyh0s3dwkkaszdd50ssyjx5fa1y3ii309ldqg693lfgnz";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "Generic unit testing framework and methodology for testing any kind of code";
platforms = platforms.unix;
license = licenses.asl20;

View File

@@ -1,4 +1,4 @@
{ fetchurl, stdenv, unzip, ant, javac, jvm }:
{ fetchurl, lib, stdenv, unzip, ant, javac, jvm }:
let
version = "1.7R2";
@@ -43,7 +43,7 @@ stdenv.mkDerivation {
cp -v *.jar "$out/share/java"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "An implementation of JavaScript written in Java";
longDescription =

View File

@@ -1,8 +1,8 @@
{ stdenv, fetchurl, unzip, jre }:
{ lib, stdenv, fetchurl, unzip, jre }:
let
common = { pname, version, src, description
, prog ? null, jar ? null, license ? stdenv.lib.licenses.mpl20 }:
, prog ? null, jar ? null, license ? lib.licenses.mpl20 }:
stdenv.mkDerivation {
name = "${pname}-${version}";
inherit pname version src;
@@ -26,7 +26,7 @@ let
chmod a+x $out/bin/${prog'}
'';
meta = with stdenv.lib; {
meta = with lib; {
inherit description license;
homepage = "http://saxon.sourceforge.net/";
maintainers = with maintainers; [ rvl ];
@@ -44,7 +44,7 @@ in {
};
description = "XSLT 1.0 processor";
# http://saxon.sourceforge.net/saxon6.5.3/conditions.html
license = stdenv.lib.licenses.mpl10;
license = lib.licenses.mpl10;
};
saxonb_8_8 = common {

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "smack-4.1.9";
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
meta = {
description = "A XMPP (Jabber) client library for instant messaging and presence";
homepage = "http://www.igniterealtime.org/projects/smack/";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.asl20;
platforms = lib.platforms.unix;
license = lib.licenses.asl20;
};
}

View File

@@ -63,7 +63,7 @@ in stdenv.mkDerivation rec {
cd out && jar -c * > $out/jars/swt.jar
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://www.eclipse.org/swt/";
description = "An widget toolkit for Java to access the user-interface facilities of the operating systems on which it is implemented";
license = licenses.epl10;