pkgs/servers: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob 2021-01-15 14:07:56 +07:00
parent e245ae3c3a
commit 872973d7d1
172 changed files with 454 additions and 455 deletions

View file

@ -41,7 +41,7 @@ let
"-Wno-error=unused-function"
"-Wno-error=ignored-qualifiers"
"-Wno-error=catch-value"
] ++ stdenv.lib.optionals stdenv.cc.isGNU [
] ++ lib.optionals stdenv.cc.isGNU [
"-Wno-error=deprecated-copy"
]);
};

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, erlang, elixir, python, libxml2, libxslt, xmlto
{ lib, stdenv, fetchurl, erlang, elixir, python, libxml2, libxslt, xmlto
, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync, getconf, socat
, procps, coreutils, gnused, systemd, glibcLocales
, AppKit, Carbon, Cocoa
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
buildInputs =
[ erlang elixir python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip rsync glibcLocales ]
++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ];
++ lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ];
outputs = [ "out" "man" "doc" ];
@ -29,12 +29,12 @@ stdenv.mkDerivation rec {
export LANG=C.UTF-8 # fix elixir locale warning
'';
runtimePath = stdenv.lib.makeBinPath ([
runtimePath = lib.makeBinPath ([
erlang
getconf # for getting memory limits
socat procps
gnused coreutils # used by helper scripts
] ++ stdenv.lib.optionals stdenv.isLinux [ systemd ]); # for systemd unit activation check
] ++ lib.optionals stdenv.isLinux [ systemd ]); # for systemd unit activation check
postInstall = ''
# rabbitmq-env calls to sed/coreutils, so provide everything early
sed -i $out/sbin/rabbitmq-env -e '2s|^|PATH=${runtimePath}\''${PATH:+:}\$PATH/\n|'
@ -62,9 +62,9 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://www.rabbitmq.com/";
description = "An implementation of the AMQP messaging protocol";
license = stdenv.lib.licenses.mpl20;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ Profpatsch ];
license = lib.licenses.mpl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ Profpatsch ];
};
passthru.tests = {

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ util-linux man ] ++ stdenv.lib.optional enableCgiScripts gd;
buildInputs = [ util-linux man ] ++ lib.optional enableCgiScripts gd;
prePatch = ''
sed -e "s,\$(INSTALL_PROGRAM) \$(STRIP),\$(INSTALL_PROGRAM)," \
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
--with-lock-dir=/run/lock \
--with-pid-dir=/run \
--enable-usb \
${stdenv.lib.optionalString enableCgiScripts "--enable-cgi --with-cgi-bin=$out/libexec/cgi-bin"}
${lib.optionalString enableCgiScripts "--enable-cgi --with-cgi-bin=$out/libexec/cgi-bin"}
"
'';

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
postFixup = ''
p="$out/lib/asterisk/modules/chan_sccp.so"
patchelf --set-rpath "$p:${stdenv.lib.makeLibraryPath [ binutils-unwrapped ]}" "$p"
patchelf --set-rpath "$p:${lib.makeLibraryPath [ binutils-unwrapped ]}" "$p"
'';
meta = with lib; {

View file

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
"http://localhost:${toString port}/"
sed -r -i crowd-openidserver-webapp/WEB-INF/classes/crowd.properties \
-e 's,application.password\s+password,application.password ${openidPassword},'
'' + stdenv.lib.optionalString (proxyUrl != null) ''
'' + lib.optionalString (proxyUrl != null) ''
sed -i crowd-openidserver-webapp/WEB-INF/classes/crowd.properties \
-e 's,http://localhost:${toString port}/openidserver,${proxyUrl}/openidserver,'
'';

View file

@ -39,7 +39,7 @@ buildGoModule rec {
-X github.com/trezor/blockbook/common.buildDate=unknown
'';
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
preBuild = lib.optionalString stdenv.isDarwin ''
ulimit -n 8192
'' + ''
export CGO_LDFLAGS="-L${stdenv.cc.cc.lib}/lib -lrocksdb -lz -lbz2 -lsnappy -llz4 -lm -lstdc++"

View file

@ -1,4 +1,4 @@
{ stdenv, fetchgit, libusb1, pkgconfig, pmutils, udev} :
{ lib, stdenv, fetchgit, libusb1, pkgconfig, pmutils, udev} :
let
@ -55,8 +55,8 @@ stdenv.mkDerivation {
meta = {
homepage = "https://www.tinkerforge.com/";
description = "A daemon (or service on Windows) that acts as a bridge between the Bricks/Bricklets and the API bindings for the different programming languages";
maintainers = [ stdenv.lib.maintainers.qknight ];
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.all;
maintainers = [ lib.maintainers.qknight ];
license = lib.licenses.gpl2;
platforms = lib.platforms.all;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "cayley";
@ -23,8 +23,8 @@ buildGoPackage rec {
meta = {
homepage = "https://cayley.io/";
description = "A graph database inspired by Freebase and Knowledge Graph";
maintainers = with stdenv.lib.maintainers; [ sigma ];
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
maintainers = with lib.maintainers; [ sigma ];
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
}

View file

@ -130,7 +130,7 @@ in stdenv.mkDerivation rec {
configurePhase = ''
# set default yarn opts
${stdenv.lib.concatMapStrings (option: ''
${lib.concatMapStrings (option: ''
yarn --offline config set ${option}
'') defaultYarnOpts}
@ -206,8 +206,8 @@ in stdenv.mkDerivation rec {
'';
passthru = {
prefetchYarnCache = stdenv.lib.overrideDerivation yarnCache (d: {
outputHash = stdenv.lib.fakeSha256;
prefetchYarnCache = lib.overrideDerivation yarnCache (d: {
outputHash = lib.fakeSha256;
});
};

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
prePatch = ''
substituteInPlace src/common/env.c \
--replace "/bin/echo" "${coreutils}/bin/echo"
'' + (stdenv.lib.optionalString enableX11 ''
'' + (lib.optionalString enableX11 ''
substituteInPlace src/common/x11_util.c \
--replace '"/usr/bin/xauth"' '"${xorg.xauth}/bin/xauth"'
'');
@ -50,9 +50,9 @@ stdenv.mkDerivation rec {
libmysqlclient ncurses gtk2 lz4 rdma-core
lua hwloc numactl readline freeipmi shadow.su
pmix
] ++ stdenv.lib.optionals enableX11 [ xorg.xauth ];
] ++ lib.optionals enableX11 [ xorg.xauth ];
configureFlags = with stdenv.lib;
configureFlags = with lib;
[ "--with-freeipmi=${freeipmi}"
"--with-hwloc=${hwloc.dev}"
"--with-lz4=${lz4.dev}"

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, nss, nspr, libqb
{ lib, stdenv, fetchurl, makeWrapper, pkgconfig, nss, nspr, libqb
, dbus, rdma-core, libstatgrab, net-snmp
, enableDbus ? false
, enableInfiniBandRdma ? false
@ -6,7 +6,7 @@
, enableSnmp ? false
}:
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
pname = "corosync";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, callPackage }:
{ lib, stdenv, fetchurl, callPackage }:
let
# Probably a bug in some FreeDict release files, but easier to trivially
@ -24,7 +24,7 @@ let
meta = {
description = "dictd-db dictionary for dictd";
platforms = stdenv.lib.platforms.linux;
platforms = lib.platforms.linux;
};
};
in rec {

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, python, dict, glibcLocales, writeScript}:
{lib, stdenv, fetchurl, python, dict, glibcLocales, writeScript}:
stdenv.mkDerivation rec {
version = "20161001";
@ -26,6 +26,6 @@ stdenv.mkDerivation rec {
description = "DICT version of English Wiktionary";
homepage = "http://en.wiktionary.org/";
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
platforms = lib.platforms.all;
};
}

View file

@ -1,4 +1,4 @@
{stdenv, python, wordnet, writeScript}:
{lib, stdenv, python, wordnet, writeScript}:
stdenv.mkDerivation rec {
version = "542";
@ -31,6 +31,6 @@ stdenv.mkDerivation rec {
homepage = "https://wordnet.princeton.edu/";
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
platforms = lib.platforms.all;
};
}

View file

@ -3,7 +3,7 @@
, autoreconfHook
}:
let inherit (stdenv.lib) optional optionals; in
let inherit (lib) optional optionals; in
stdenv.mkDerivation rec {
pname = "knot-dns";

View file

@ -12,7 +12,7 @@ let # un-indented, over the whole file
result = if extraFeatures then wrapped-full else unwrapped;
inherit (stdenv.lib) optional optionals optionalString;
inherit (lib) optional optionals optionalString;
lua = luajitPackages;
unwrapped = stdenv.mkDerivation rec {

View file

@ -1,10 +1,10 @@
{ stdenv, fetchurl, pkgconfig, boost, nixosTests
{ lib, stdenv, fetchurl, pkgconfig, boost, nixosTests
, openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false
}:
assert enableProtoBuf -> protobuf != null;
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
pname = "pdns-recursor";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, jre, makeWrapper, which }:
{ lib, stdenv, fetchurl, jre, makeWrapper, which }:
stdenv.mkDerivation rec {
name = "elasticmq-0.5";
@ -14,11 +14,11 @@ stdenv.mkDerivation rec {
''
mkdir -p $out/bin
cp -prd lib conf $out/
cp bin/run.sh $out/bin/elasticmq
substituteInPlace $out/bin/elasticmq --replace '-DBASEDIR=$BASEDIR' '-DBASEDIR=''${ELASTICMQ_DATA_PREFIX:-.}'
wrapProgram $out/bin/elasticmq --prefix PATH : "${stdenv.lib.makeBinPath [ which jre ]}"
wrapProgram $out/bin/elasticmq --prefix PATH : "${lib.makeBinPath [ which jre ]}"
'';
meta = {
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
$ELASTICMQ_DATA_PREFIX/conf/Default.scala. You can use the
Default.scala included in the distribution as a template.
'';
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
}

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
mkdir -p $out/share/java
mv target/$name.jar $out/share/java/
makeWrapper ${jdk}/bin/java $out/bin/startExhibitor.sh --add-flags "-jar $out/share/java/$name.jar" --suffix PATH : ${stdenv.lib.makeBinPath [ jdk ]}
makeWrapper ${jdk}/bin/java $out/bin/startExhibitor.sh --add-flags "-jar $out/share/java/$name.jar" --suffix PATH : ${lib.makeBinPath [ jdk ]}
'';
}

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, libedit, automake, autoconf, libtool
{lib, stdenv, fetchurl, libedit, automake, autoconf, libtool
,
# icu = null: use icu which comes with firebird
@ -56,8 +56,8 @@ stdenv.mkDerivation rec {
"--with-fbconf=/etc/firebird"
"--with-fbsecure-db=/var/db/firebird/system"
]
++ (stdenv.lib.optional (icu != null) "--with-system-icu")
++ (stdenv.lib.optional superServer "--enable-superserver");
++ (lib.optional (icu != null) "--with-system-icu")
++ (lib.optional superServer "--enable-superserver");
src = fetchurl {
url = "mirror://sourceforge/firebird/Firebird-${version}.tar.bz2";
@ -83,8 +83,8 @@ stdenv.mkDerivation rec {
description = "SQL relational database management system";
homepage = "https://www.firebirdnews.org";
license = ["IDPL" "Interbase-1.0"];
maintainers = [stdenv.lib.maintainers.marcweber];
platforms = stdenv.lib.platforms.linux;
maintainers = [lib.maintainers.marcweber];
platforms = lib.platforms.linux;
broken = true;
};

View file

@ -40,7 +40,7 @@ assert withRest -> curl != null && withJson;
## TODO: include oracle optionally
## TODO: include ykclient optionally
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
pname = "freeradius";
version = "3.0.21";
@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
"--localstatedir=/var"
] ++ optional (!linkOpenssl) "--with-openssl=no";
patches = stdenv.lib.optional withRest (fetchpatch {
patches = lib.optional withRest (fetchpatch {
# Fix HTTP/2 in rest
url = "https://github.com/FreeRADIUS/freeradius-server/commit/6286520698a3cc4053b4d49eb0a61d9ba77632aa.patch";
sha256 = "1ycvr3ql1mfkvzydnn4aiygnidicv2hgllppv37nb1p2pk02159g";

View file

@ -16,7 +16,7 @@
, enableInotifyTools ? true
}:
with stdenv.lib;
with lib;
let
optionOnOff = option: if option then "on" else "off";
in stdenv.mkDerivation rec {

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
description = "The Java SQL database";
homepage = "http://www.h2database.com/html/main.html";
license = licenses.mpl20;
platforms = stdenv.lib.platforms.linux;
platforms = lib.platforms.linux;
maintainers = with maintainers; [ mahe ];
};
}

View file

@ -17,6 +17,6 @@ stdenv.mkDerivation rec {
description = "A distributed, scalable, big data store";
homepage = "https://hbase.apache.org";
license = licenses.asl20;
platforms = stdenv.lib.platforms.linux;
platforms = lib.platforms.linux;
};
}

View file

@ -28,6 +28,6 @@ python2.pkgs.buildPythonApplication rec {
description = "Automatic music downloader for SABnzbd";
license = licenses.gpl3;
homepage = "https://github.com/rembo10/headphones";
maintainers = with stdenv.lib.maintainers; [ rembo10 ];
maintainers = with lib.maintainers; [ rembo10 ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "holochain-go${version}";
@ -22,8 +22,8 @@ buildGoPackage rec {
longDescription = "Holographic storage for distributed applications -- a validating monotonic DHT backed by authoritative hashchains for data provenance";
homepage = "https://holochain.org/";
downloadPage = "https://developer.holochain.org/";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ gavin ];
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ gavin ];
};
}

View file

@ -8,7 +8,7 @@
, luaSupport ? false, lua5
}:
let inherit (stdenv.lib) optional;
let inherit (lib) optional;
in
assert sslSupport -> aprutil.sslSupport && openssl != null;
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
'';
# Required for pthread_cancel.
NIX_LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
NIX_LDFLAGS = lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
configureFlags = [
"--with-apr=${apr.dev}"
@ -57,19 +57,19 @@ stdenv.mkDerivation rec {
"--enable-imagemap"
"--enable-cgi"
"--includedir=${placeholder "dev"}/include"
(stdenv.lib.enableFeature proxySupport "proxy")
(stdenv.lib.enableFeature sslSupport "ssl")
(stdenv.lib.withFeatureAs libxml2Support "libxml2" "${libxml2.dev}/include/libxml2")
(lib.enableFeature proxySupport "proxy")
(lib.enableFeature sslSupport "ssl")
(lib.withFeatureAs libxml2Support "libxml2" "${libxml2.dev}/include/libxml2")
"--docdir=$(doc)/share/doc"
(stdenv.lib.enableFeature brotliSupport "brotli")
(stdenv.lib.withFeatureAs brotliSupport "brotli" brotli)
(lib.enableFeature brotliSupport "brotli")
(lib.withFeatureAs brotliSupport "brotli" brotli)
(stdenv.lib.enableFeature http2Support "http2")
(stdenv.lib.withFeature http2Support "nghttp2")
(lib.enableFeature http2Support "http2")
(lib.withFeature http2Support "nghttp2")
(stdenv.lib.enableFeature luaSupport "lua")
(stdenv.lib.withFeatureAs luaSupport "lua" lua5)
(lib.enableFeature luaSupport "lua")
(lib.withFeatureAs luaSupport "lua" lua5)
];
enableParallelBuilding = true;
@ -91,7 +91,7 @@ stdenv.mkDerivation rec {
description = "Apache HTTPD, the world's most popular web server";
homepage = "http://httpd.apache.org/";
license = licenses.asl20;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
platforms = lib.platforms.linux ++ stdenv.lib.platforms.darwin;
maintainers = with maintainers; [ lovek323 peti ];
};
}

View file

@ -30,6 +30,6 @@ stdenv.mkDerivation {
meta = {
homepage = "http://www.zdziarski.com/blog/?page_id=442";
description = "Evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack";
platforms = stdenv.lib.platforms.linux;
platforms = lib.platforms.linux;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, apacheHttpd }:
{ lib, stdenv, fetchurl, apacheHttpd }:
let
version = "2.4.7.1";
@ -42,7 +42,7 @@ stdenv.mkDerivation {
more scalable.
'';
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ];
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.peti ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, apacheHttpd, python2 }:
{ lib, stdenv, fetchurl, apacheHttpd, python2 }:
stdenv.mkDerivation rec {
name = "mod_python-3.5.0";
@ -29,6 +29,6 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://modpython.org/";
description = "An Apache module that embeds the Python interpreter within the server";
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, apacheHttpd, python, ncurses }:
{ lib, stdenv, fetchurl, apacheHttpd, python, ncurses }:
stdenv.mkDerivation rec {
pname = "mod_wsgi";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://github.com/GrahamDumpleton/mod_wsgi";
description = "Host Python applications in Apache through the WSGI interface";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
};
}

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "A high performance web server";
homepage = "http://www.fefe.de/gatling/";
license = stdenv.lib.licenses.gpl2;
license = lib.licenses.gpl2;
platforms = platforms.linux;
};
}

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ mbedtls ] ++ stdenv.lib.optionals enableXslt [ libxslt libxml2 ];
buildInputs = [ mbedtls ] ++ lib.optionals enableXslt [ libxslt libxml2 ];
prePatch = ''
substituteInPlace CMakeLists.txt --replace SETUID ""

View file

@ -1,4 +1,4 @@
{ stdenv, mysql_jdbc }:
{ lib, stdenv, mysql_jdbc }:
stdenv.mkDerivation {
name = "jboss-mysql-jdbc";
@ -8,6 +8,6 @@ stdenv.mkDerivation {
inherit mysql_jdbc;
meta = {
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "jetty";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
meta = {
description = "A Web server and javax.servlet container";
homepage = "https://www.eclipse.org/jetty/";
platforms = stdenv.lib.platforms.all;
license = [ stdenv.lib.licenses.asl20 stdenv.lib.licenses.epl10 ];
platforms = lib.platforms.all;
license = [ lib.licenses.asl20 stdenv.lib.licenses.epl10 ];
};
}

View file

@ -32,19 +32,19 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pcre pcre.dev libxml2 zlib bzip2 which file openssl ]
++ stdenv.lib.optional enableMagnet lua5_1
++ stdenv.lib.optional enableMysql libmysqlclient
++ stdenv.lib.optional enableLdap openldap
++ stdenv.lib.optional enableWebDAV sqlite
++ stdenv.lib.optional enableWebDAV libuuid;
++ lib.optional enableMagnet lua5_1
++ lib.optional enableMysql libmysqlclient
++ lib.optional enableLdap openldap
++ lib.optional enableWebDAV sqlite
++ lib.optional enableWebDAV libuuid;
configureFlags = [ "--with-openssl" ]
++ stdenv.lib.optional enableMagnet "--with-lua"
++ stdenv.lib.optional enableMysql "--with-mysql"
++ stdenv.lib.optional enableLdap "--with-ldap"
++ stdenv.lib.optional enableWebDAV "--with-webdav-props"
++ stdenv.lib.optional enableWebDAV "--with-webdav-locks"
++ stdenv.lib.optional enableExtendedAttrs "--with-attr";
++ lib.optional enableMagnet "--with-lua"
++ lib.optional enableMysql "--with-mysql"
++ lib.optional enableLdap "--with-ldap"
++ lib.optional enableWebDAV "--with-webdav-props"
++ lib.optional enableWebDAV "--with-webdav-locks"
++ lib.optional enableExtendedAttrs "--with-attr";
preConfigure = ''
export PATH=$PATH:${pcre.dev}/bin
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Lightweight high-performance web server";
homepage = "http://www.lighttpd.net/";
license = stdenv.lib.licenses.bsd3;
license = lib.licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.bjornfor ];
};

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost }:
{ lib, stdenv, fetchurl, boost }:
stdenv.mkDerivation rec {
name = "mini-httpd-1.7";
@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://mini-httpd.nongnu.org/";
description = "minimalistic high-performance web server";
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ];
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.peti ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt
{ lib, stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt
, nixosTests
, substituteAll, gd, geoip, perl
, withDebug ? false
@ -22,7 +22,7 @@
, meta ? null
}:
with stdenv.lib;
with lib;
let

View file

@ -1,4 +1,4 @@
{stdenv
{lib, stdenv
, coreutils, findutils, nix, xz, bzip2, gnused, gnugrep, openssl
, lighttpd, iproute }:
stdenv.mkDerivation rec {
@ -47,15 +47,15 @@ stdenv.mkDerivation rec {
meta = {
description = ''A set of scripts to serve the Nix store as a binary cache'';
longDescription = ''
This package installs a CGI script that serves Nix store path in the
binary cache format. It also installs a launcher called
This package installs a CGI script that serves Nix store path in the
binary cache format. It also installs a launcher called
nix-binary-cache-start that can be run without any setup to launch
a binary cache and get the example arguments for its usage.
'';
maintainers = [stdenv.lib.maintainers.raskin];
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [lib.maintainers.raskin];
license = lib.licenses.gpl2Plus;
inherit version;
platforms = stdenv.lib.platforms.all;
platforms = lib.platforms.all;
hydraPlatforms = [];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
stdenv.mkDerivation rec {
pname = "pshs";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Pretty small HTTP server - a command-line tool to share files";
homepage = "https://github.com/mgorny/pshs";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, redland, pkgconfig, gmp, zlib, librdf_raptor2
{ lib, stdenv, fetchurl, redland, pkgconfig, gmp, zlib, librdf_raptor2
, librdf_rasqal }:
stdenv.mkDerivation rec {
@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
meta = {
description = "An HTTP interface to Redland RDF store";
homepage = "https://www.aelius.com/njh/redstore/";
maintainers = [ stdenv.lib.maintainers.raskin ];
platforms = with stdenv.lib.platforms;
maintainers = [ lib.maintainers.raskin ];
platforms = with lib.platforms;
linux ++ freebsd ++ gnu;
license = stdenv.lib.licenses.gpl3Plus;
license = lib.licenses.gpl3Plus;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt
{ lib, stdenv, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt
, substituteAll, gd, geoip, gperftools, jemalloc
, withDebug ? false
, withMail ? false
@ -7,7 +7,7 @@
, ...
}:
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
version = "2.3.2";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "thttpd";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Tiny/turbo/throttling HTTP server";
homepage = "http://www.acme.com/software/thttpd/";
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, apacheAnt, jdk, unzip }:
{ lib, stdenv, fetchurl, apacheAnt, jdk, unzip }:
stdenv.mkDerivation rec {
pname = "axis2";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Web Services / SOAP / WSDL engine, the successor to the widely used Apache Axis SOAP stack";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.asl20;
platforms = lib.platforms.unix;
license = lib.licenses.asl20;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, mysql_jdbc }:
{ lib, stdenv, mysql_jdbc }:
stdenv.mkDerivation {
name = "tomcat-mysql-jdbc";
@ -8,6 +8,6 @@ stdenv.mkDerivation {
inherit mysql_jdbc;
meta = {
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, nixosTests, which
{ lib, stdenv, fetchFromGitHub, nixosTests, which
, pcre2
, withPython2 ? false, python2
, withPython3 ? true, python3, ncurses
@ -15,7 +15,7 @@
, withDebug ? false
}:
with stdenv.lib;
with lib;
let
phpConfig = {

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl
{lib, stdenv, fetchurl
, libxml2, libxslt, curl
, libvorbis, libtheora, speex, libkate, libopus }:
@ -27,9 +27,9 @@ stdenv.mkDerivation rec {
'';
homepage = "https://www.icecast.org";
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ jcumming ];
platforms = with stdenv.lib.platforms; unix;
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ jcumming ];
platforms = with lib.platforms; unix;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl, zlib }:
{ lib, stdenv, fetchurl, openssl, zlib }:
stdenv.mkDerivation rec {
name = "ircd-hybrid-8.2.35";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
meta = {
description = "An IPv6-capable IRC server";
platforms = stdenv.lib.platforms.unix;
platforms = lib.platforms.unix;
homepage = "https://www.ircd-hybrid.org/";
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, zlib, openssl, pam, libiconv }:
{ lib, stdenv, fetchurl, zlib, openssl, pam, libiconv }:
stdenv.mkDerivation rec {
pname = "ngircd";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = {
description = "Next Generation IRC Daemon";
homepage = "https://ngircd.barton.de";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.all;
license = lib.licenses.gpl2;
platforms = lib.platforms.all;
};
}

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
"--localstatedir=/var/lib/solanum"
"--with-rundir=/run/solanum"
"--with-logdir=/var/log/solanum"
] ++ stdenv.lib.optionals (stdenv.isLinux) [
] ++ lib.optionals (stdenv.isLinux) [
"--enable-sctp=${lksctp-tools.out}/lib"
];

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
makeWrapper "${mono}/bin/mono" $out/bin/Jackett \
--add-flags "$out/share/${pname}-${version}/JackettConsole.exe" \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ curl icu60 openssl zlib ]}
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ curl icu60 openssl zlib ]}
'';
meta = with lib; {

View file

@ -42,7 +42,7 @@ in stdenv.mkDerivation rec {
install -dm 755 "$out/opt/jellyfin"
cp -r * "$out/opt/jellyfin"
makeWrapper "${dotnetCorePackages.aspnetcore_3_1}/bin/dotnet" $out/bin/jellyfin \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
sqlite fontconfig freetype stdenv.cc.cc.lib
]}:$out/opt/jellyfin/runtimes/${runtimeDir}/native/" \
--add-flags "$out/opt/jellyfin/jellyfin.dll --ffmpeg ${ffmpeg}/bin/ffmpeg"
@ -52,7 +52,7 @@ in stdenv.mkDerivation rec {
smoke-test = nixosTests.jellyfin;
};
meta = with stdenv.lib; {
meta = with lib; {
description = "The Free Software Media System";
homepage = "https://jellyfin.org/";
license = licenses.gpl2;

View file

@ -42,7 +42,7 @@ in stdenv.mkDerivation rec {
install -dm 755 "$out/opt/jellyfin"
cp -r * "$out/opt/jellyfin"
makeWrapper "${dotnetCorePackages.aspnetcore_3_1}/bin/dotnet" $out/bin/jellyfin \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
sqlite fontconfig freetype stdenv.cc.cc.lib
]}:$out/opt/jellyfin/runtimes/${runtimeDir}/native/" \
--add-flags "$out/opt/jellyfin/jellyfin.dll --ffmpeg ${ffmpeg}/bin/ffmpeg"
@ -52,7 +52,7 @@ in stdenv.mkDerivation rec {
smoke-test = nixosTests.jellyfin;
};
meta = with stdenv.lib; {
meta = with lib; {
description = "The Free Software Media System";
homepage = "https://jellyfin.org/";
license = licenses.gpl2;

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
runHook preInstall
makeWrapper ${jre}/bin/java $out/bin/youtrack \
--add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \
--prefix PATH : "${stdenv.lib.makeBinPath [ gawk ]}" \
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jre}
runHook postInstall
'';

View file

@ -47,8 +47,8 @@ stdenv.mkDerivation rec {
"--with-db-lib=${db.out}/lib"
"--with-sasl=${cyrus_sasl.dev}"
"--with-netsnmp=yes"
"--with-netsnmp-inc=${stdenv.lib.getDev net-snmp}/include"
"--with-netsnmp-lib=${stdenv.lib.getLib net-snmp}/lib"
"--with-netsnmp-inc=${lib.getDev net-snmp}/include"
"--with-netsnmp-lib=${lib.getLib net-snmp}/lib"
];
enableParallelBuilding = true;

View file

@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
makeWrapper "${mono}/bin/mono" $out/bin/Lidarr \
--add-flags "$out/bin/Lidarr.exe" \
--prefix PATH : ${stdenv.lib.makeBinPath [ chromaprint ]} \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
--prefix PATH : ${lib.makeBinPath [ chromaprint ]} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
curl sqlite libmediainfo ]}
'';

View file

@ -84,8 +84,8 @@ stdenv.mkDerivation rec {
meta = {
homepage = "https://dovecot.org/";
description = "Open source IMAP and POP3 email server written with security primarily in mind";
maintainers = with stdenv.lib.maintainers; [ peti fpletz globin ];
platforms = stdenv.lib.platforms.unix;
maintainers = with lib.maintainers; [ peti fpletz globin ];
platforms = lib.platforms.unix;
};
passthru.tests = {
opensmtpd-interaction = nixosTests.opensmtpd;

View file

@ -18,12 +18,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ coreutils db openssl perl pcre ]
++ stdenv.lib.optional enableLDAP openldap
++ stdenv.lib.optionals enableMySQL [ libmysqlclient zlib ]
++ stdenv.lib.optional enableAuthDovecot dovecot
++ stdenv.lib.optional enablePAM pam
++ stdenv.lib.optional enableSPF libspf2
++ stdenv.lib.optional enableDMARC opendmarc;
++ lib.optional enableLDAP openldap
++ lib.optionals enableMySQL [ libmysqlclient zlib ]
++ lib.optional enableAuthDovecot dovecot
++ lib.optional enablePAM pam
++ lib.optional enableSPF libspf2
++ lib.optional enableDMARC opendmarc;
preBuild = ''
sed '
@ -49,32 +49,32 @@ stdenv.mkDerivation rec {
s:^# \(TOUCH_COMMAND\)=.*:\1=${coreutils}/bin/touch:
s:^# \(PERL_COMMAND\)=.*:\1=${perl}/bin/perl:
s:^# \(LOOKUP_DSEARCH=yes\)$:\1:
${stdenv.lib.optionalString enableLDAP ''
${lib.optionalString enableLDAP ''
s:^# \(LDAP_LIB_TYPE=OPENLDAP2\)$:\1:
s:^# \(LOOKUP_LDAP=yes\)$:\1:
s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lldap -llber:
s:^# \(LOOKUP_LIBS\)=.*:\1=-lldap -llber:
''}
${stdenv.lib.optionalString enableMySQL ''
${lib.optionalString enableMySQL ''
s:^# \(LOOKUP_MYSQL=yes\)$:\1:
s:^# \(LOOKUP_MYSQL_PC=libmysqlclient\)$:\1:
s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz:
s:^# \(LOOKUP_LIBS\)=.*:\1=-lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz:
s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${libmysqlclient}/include/mysql/:
''}
${stdenv.lib.optionalString enableAuthDovecot ''
${lib.optionalString enableAuthDovecot ''
s:^# \(AUTH_DOVECOT\)=.*:\1=yes:
''}
${stdenv.lib.optionalString enablePAM ''
${lib.optionalString enablePAM ''
s:^# \(SUPPORT_PAM\)=.*:\1=yes:
s:^\(EXTRALIBS_EXIM\)=\(.*\):\1=\2 -lpam:
s:^# \(EXTRALIBS_EXIM\)=.*:\1=-lpam:
''}
${stdenv.lib.optionalString enableSPF ''
${lib.optionalString enableSPF ''
s:^# \(SUPPORT_SPF\)=.*:\1=yes:
s:^# \(LDFLAGS += -lspf2\):\1:
''}
${stdenv.lib.optionalString enableDMARC ''
${lib.optionalString enableDMARC ''
s:^# \(SUPPORT_DMARC\)=.*:\1=yes:
s:^# \(LDFLAGS += -lopendmarc\):\1:
''}

View file

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, alembic, aiosmtpd, dnspython
{ lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, alembic, aiosmtpd, dnspython
, flufl_bounce, flufl_i18n, flufl_lock, lazr_config, lazr_delegates, passlib
, requests, zope_configuration, click, falcon, importlib-resources
, zope_component, lynx, postfix, authheaders, gunicorn
@ -53,7 +53,7 @@ buildPythonPackage rec {
meta = {
homepage = "https://www.gnu.org/software/mailman/";
description = "Free software for managing electronic mail discussion and newsletter lists";
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with stdenv.lib.maintainers; [ peti ];
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ peti ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isort, coverage, mock
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k, isort, coverage, mock
, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
, django-haystack, flufl_lock, networkx, dateutil, defusedxml
, django-paintstore, djangorestframework, django, django-q
@ -38,8 +38,8 @@ buildPythonPackage rec {
meta = {
homepage = "https://www.gnu.org/software/mailman/";
description = "Archiver for GNU Mailman v3";
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ peti globin ];
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ peti globin ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, beautifulsoup4, vcrpy, mock
{ lib, stdenv, buildPythonPackage, fetchPypi, beautifulsoup4, vcrpy, mock
, django-mailman3, mailmanclient, readme_renderer
}:
@ -20,7 +20,7 @@ buildPythonPackage rec {
meta = {
homepage = "https://www.gnu.org/software/mailman/";
description = "Web-based user interface for managing GNU Mailman";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ globin peti ];
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ globin peti ];
};
}

View file

@ -12,12 +12,12 @@ stdenv.mkDerivation rec {
sha256 = "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq";
};
buildInputs = stdenv.lib.optional tls gnutls;
buildInputs = lib.optional tls gnutls;
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
] ++ stdenv.lib.optional tls "--enable-tls";
] ++ lib.optional tls "--enable-tls";
installFlags = [ "DESTDIR=$(out)" ];

View file

@ -48,37 +48,37 @@ stdenv.mkDerivation rec {
"--with-scheduler-ram"
"--with-scheduler-stub"
] ++ stdenv.lib.optionals enablePython [
] ++ lib.optionals enablePython [
"--with-python=${python2}"
"--with-filter-python"
"--with-queue-python"
"--with-table-python"
"--with-scheduler-python"
] ++ stdenv.lib.optionals enableLua [
] ++ lib.optionals enableLua [
"--with-lua=${pkgconfig}"
"--with-filter-lua"
] ++ stdenv.lib.optionals enablePerl [
] ++ lib.optionals enablePerl [
"--with-perl=${perl}"
"--with-filter-perl"
] ++ stdenv.lib.optionals enableMysql [
] ++ lib.optionals enableMysql [
"--with-table-mysql"
] ++ stdenv.lib.optionals enablePostgres [
] ++ lib.optionals enablePostgres [
"--with-table-postgres"
] ++ stdenv.lib.optionals enableSqlite [
] ++ lib.optionals enableSqlite [
"--with-table-sqlite"
] ++ stdenv.lib.optionals enableRedis [
] ++ lib.optionals enableRedis [
"--with-table-redis"
];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString enableRedis
NIX_CFLAGS_COMPILE = lib.optionalString enableRedis
"-I${hiredis}/include/hiredis -lhiredis"
+ stdenv.lib.optionalString enableMysql
+ lib.optionalString enableMysql
" -L${libmysqlclient}/lib/mysql";
meta = with lib; {

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, flex, bison, sendmailPath ? "/run/wrappers/bin/sendmail" }:
{ lib, stdenv, fetchurl, flex, bison, sendmailPath ? "/run/wrappers/bin/sendmail" }:
stdenv.mkDerivation rec {
name = "petidomo-4.3";
@ -19,9 +19,9 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://petidomo.sourceforge.net/";
description = "A simple and easy to administer mailing list server";
license = stdenv.lib.licenses.gpl3Plus;
license = lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.peti ];
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.peti ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl }:
{ lib, stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
@ -23,6 +23,6 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://www.openwall.com/popa3d/";
description = "Tiny POP3 daemon with security as the primary goal";
platforms = stdenv.lib.platforms.linux;
platforms = lib.platforms.linux;
};
}

View file

@ -50,7 +50,7 @@ in stdenv.mkDerivation rec {
./relative-symlinks.patch
];
postPatch = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
sed -e 's!bin/postconf!${buildPackages.postfix}/bin/postconf!' -i postfix-install
'' + ''
sed -e '/^PATH=/d' -i postfix-install

View file

@ -50,7 +50,7 @@ stdenv.mkDerivation {
description = "A collection of postfix-related tools";
license = with lib.licenses; [ bsd3 ];
homepage = "https://github.com/Fruneau/pfixtools";
platforms = stdenv.lib.platforms.linux;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ jerith666 ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perlPackages }:
{ lib, stdenv, fetchurl, perlPackages }:
perlPackages.buildPerlPackage rec {
pname = "pflogsumm";
@ -27,8 +27,8 @@ perlPackages.buildPerlPackage rec {
meta = {
homepage = "http://jimsun.linxnet.com/postfix_contrib.html";
maintainers = with stdenv.lib.maintainers; [ schneefux ];
maintainers = with lib.maintainers; [ schneefux ];
description = "Postfix activity overview";
license = stdenv.lib.licenses.gpl2Plus;
license = lib.licenses.gpl2Plus;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perlPackages, makeWrapper, gnupg }:
{ lib, stdenv, fetchurl, perlPackages, makeWrapper, gnupg }:
perlPackages.buildPerlPackage rec {
pname = "SpamAssassin";
@ -35,8 +35,8 @@ perlPackages.buildPerlPackage rec {
meta = {
homepage = "http://spamassassin.apache.org/";
description = "Open-Source Spam Filter";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ peti qknight qyliss ];
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ peti qknight qyliss ];
};
}

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
hardeningEnable = [ "pie" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ]
++ stdenv.lib.optional stdenv.isDarwin "-Wno-error";
++ lib.optional stdenv.isDarwin "-Wno-error";
meta = with lib; {
description = "A distributed memory object caching system";

View file

@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0cyxa200iz7knkma4zi3mzky3g0kibbxd5303psk2rl2rppir0f7";
buildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
meta = with lib; {
homepage = "https://github.com/robertohuertasm/microserver";

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Personal media streamer";
homepage = "https://airsonic.github.io";
license = stdenv.lib.licenses.gpl3;
license = lib.licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ disassembler ];
};

View file

@ -1,4 +1,4 @@
{ mkDerivation, fetchFromGitHub, base, bytestring, network, stdenv }:
{ mkDerivation, fetchFromGitHub, base, bytestring, network, lib, stdenv }:
mkDerivation {
pname = "client-ip-echo";
version = "0.1.0.5";
@ -12,5 +12,5 @@ mkDerivation {
isExecutable = true;
executableHaskellDepends = [ base bytestring network ];
description = "accepts TCP connections and echoes the client's IP address back to it";
license = stdenv.lib.licenses.lgpl3;
license = lib.licenses.lgpl3;
}

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, ffmpeg, ffmpegSupport ? true, makeWrapper }:
{ lib, stdenv, fetchurl, ffmpeg, ffmpegSupport ? true, makeWrapper }:
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
pname = "navidrome";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, libuuid, gnutls, makeWrapper }:
{ lib, stdenv, fetchurl, cmake, libuuid, gnutls, makeWrapper }:
stdenv.mkDerivation rec {
pname = "taskserver";
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
echo wrapping $i
makeWrapper $pkipath/$i $out/bin/taskd-pki-$i \
--prefix PATH : ${stdenv.lib.makeBinPath [ gnutls ]}
--prefix PATH : ${lib.makeBinPath [ gnutls ]}
done
'';
@ -34,8 +34,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Server for synchronising Taskwarrior clients";
homepage = "https://taskwarrior.org";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ matthiasbeyer makefu ];
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ matthiasbeyer makefu ];
};
}

View file

@ -76,7 +76,7 @@ perlPackages.buildPerlPackage rec {
meta = with lib; {
homepage = "http://www.fusioninventory.org";
description = "FusionInventory unified Agent for UNIX, Linux, Windows and MacOSX";
license = stdenv.lib.licenses.gpl2;
license = lib.licenses.gpl2;
maintainers = [ maintainers.phile314 ];
};
}

View file

@ -1,6 +1,6 @@
{ stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
{ lib, stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
with stdenv.lib;
with lib;
buildGoPackage rec {
pname = "reporter";

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
postFixup = ''
for f in $out/bin/*.pl ; do
substituteInPlace $f \
--replace /usr/bin/perl ${stdenv.lib.getBin perl}/bin/perl
--replace /usr/bin/perl ${lib.getBin perl}/bin/perl
done
# NixOS will not use this file anyway but at least we can now execute LCDd

View file

@ -17,9 +17,9 @@ buildGoModule rec {
subPackages = [ "..." ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ systemd.dev ];
buildInputs = lib.optionals stdenv.isLinux [ systemd.dev ];
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
preFixup = lib.optionalString stdenv.isLinux ''
wrapProgram $out/bin/promtail \
--prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib"
'';

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, php, gd, libpng, zlib, unzip, nixosTests }:
{ lib, stdenv, fetchurl, perl, php, gd, libpng, zlib, unzip, nixosTests }:
stdenv.mkDerivation rec {
pname = "nagios";
@ -35,8 +35,8 @@ stdenv.mkDerivation rec {
meta = {
description = "A host, service and network monitoring program";
homepage = "https://www.nagios.org/";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ immae thoughtpolice relrod ];
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ immae thoughtpolice relrod ];
};
}

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/check_ssl_cert \
--prefix PATH : "${stdenv.lib.makeBinPath [ openssl file which curl ]}"
--prefix PATH : "${lib.makeBinPath [ openssl file which curl ]}"
'';
meta = with lib; {

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
"--with-openssl=${openssl.dev}"
"--disable-embedded-perl"
"--without-perl-modules"
] ++ stdenv.lib.optional stdenv.isLinux "--with-mnttab=/proc/mounts";
] ++ lib.optional stdenv.isLinux "--with-mnttab=/proc/mounts";
postPatch = ''
substituteInPlace testing/fulltests/support/simple_TESTCONF.sh --replace "/bin/netstat" "${nettools}/bin/netstat"

View file

@ -1,9 +1,9 @@
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, runCommand
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, runCommand
, coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
, runtimeShell }:
with stdenv.lib;
with lib;
let
majorVersion = "2.2";

View file

@ -4,7 +4,7 @@ let
bName = "check_esxi_hardware";
in python3Packages.buildPythonApplication rec {
pname = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName;
pname = lib.replaceStrings [ "_" ] [ "-" ] bName;
version = "20200710";
src = fetchFromGitHub {

View file

@ -22,7 +22,7 @@ let
nativeBuildInputs = [ autoreconfHook makeWrapper ];
prePatch = with stdenv.lib; ''
prePatch = with lib; ''
rm -rf GLPlugin
ln -s ${glplugin} GLPlugin
substituteInPlace plugins-scripts/Makefile.am \

View file

@ -21,7 +21,7 @@ buildGoPackage rec {
-X ${t}.Branch=unknown
-X ${t}.BuildUser=nix@nixpkgs
-X ${t}.BuildDate=unknown
-X ${t}.GoVersion=${stdenv.lib.getVersion go}
-X ${t}.GoVersion=${lib.getVersion go}
'';
nativeBuildInputs = [ installShellFiles ];

View file

@ -2,7 +2,7 @@
buildGoPackage rec {
pname = "bind_exporter";
version = "20161221-${stdenv.lib.strings.substring 0 7 rev}";
version = "20161221-${lib.strings.substring 0 7 rev}";
rev = "4e1717c7cd5f31c47d0c37274464cbaabdd462ba";
goPackagePath = "github.com/digitalocean/bind_exporter";

View file

@ -1,7 +1,7 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub, makeWrapper, nixosTests
, systemd, withSystemdSupport ? true }:
with stdenv.lib;
with lib;
buildGoPackage rec {
pname = "postfix_exporter";

View file

@ -24,7 +24,7 @@ buildGoPackage rec {
-X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.Branch=${rev}
-X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.BuildUser=${buildUser}
-X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.BuildDate=${buildDate}
-X main.goVersion=${stdenv.lib.getVersion go}
-X main.goVersion=${lib.getVersion go}
'';
doInstallCheck = true;

View file

@ -6,7 +6,7 @@ import ./versions.nix ({ version, sha256 }:
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${stdenv.lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
};

View file

@ -13,7 +13,7 @@ assert postgresqlSupport -> !mysqlSupport && !sqliteSupport;
assert sqliteSupport -> !mysqlSupport && !postgresqlSupport;
let
inherit (stdenv.lib) optional optionalString;
inherit (lib) optional optionalString;
in
import ./versions.nix ({ version, sha256 }:
stdenv.mkDerivation {
@ -21,7 +21,7 @@ in
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${stdenv.lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
};

View file

@ -13,7 +13,7 @@ assert mysqlSupport -> !postgresqlSupport;
assert postgresqlSupport -> !mysqlSupport;
let
inherit (stdenv.lib) optional optionalString;
inherit (lib) optional optionalString;
in
import ./versions.nix ({ version, sha256 }:
stdenv.mkDerivation {
@ -21,7 +21,7 @@ in
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${stdenv.lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
};

View file

@ -6,7 +6,7 @@ import ./versions.nix ({ version, sha256 }:
inherit version;
src = fetchurl {
url = "https://cdn.zabbix.com/zabbix/sources/stable/${stdenv.lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
inherit sha256;
};
@ -18,7 +18,7 @@ import ./versions.nix ({ version, sha256 }:
installPhase = ''
mkdir -p $out/share/zabbix/
cp -a ${if stdenv.lib.versionAtLeast version "5.0.0" then "ui/." else "frontends/php/."} $out/share/zabbix/
cp -a ${if lib.versionAtLeast version "5.0.0" then "ui/." else "frontends/php/."} $out/share/zabbix/
cp ${phpConfig} $out/share/zabbix/conf/zabbix.conf.php
'';

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ meson ninja ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
meta = with lib; {
description = "Client library for MPD (music player daemon)";

View file

@ -28,7 +28,6 @@
}:
let
lib = stdenv.lib;
concatAttrVals = nameList: set: lib.concatMap (x: set.${x} or []) nameList;
featureDependencies = {

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pcre }:
{ lib, stdenv, fetchurl, pcre }:
stdenv.mkDerivation {
name = "leafnode-2.0.0.alpha20121101a.12";
@ -31,7 +31,7 @@ stdenv.mkDerivation {
meta = {
homepage = "http://leafnode.sourceforge.net/";
description = "Implementation of a store & forward NNTP proxy";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3Packages, php }:
{ lib, stdenv, fetchurl, python3Packages, php }:
python3Packages.buildPythonApplication rec {
name = "nextcloud-news-updater-${version}";
@ -16,7 +16,7 @@ python3Packages.buildPythonApplication rec {
meta = {
description = "Fast parallel feed updater for the Nextcloud news app";
homepage = "https://github.com/nextcloud/news-updater";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ schneefux ];
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ schneefux ];
};
}

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, java, makeWrapper}:
{lib, stdenv, fetchurl, java, makeWrapper}:
let
s = # Generated upstream information
rec {
@ -27,9 +27,9 @@ stdenv.mkDerivation {
meta = {
inherit (s) version;
description = ''RDF database'';
license = stdenv.lib.licenses.asl20;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.asl20;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
homepage = "http://jena.apache.org";
downloadPage = "http://archive.apache.org/dist/jena/binaries/";
updateWalker = true;

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, java, makeWrapper}:
{lib, stdenv, fetchurl, java, makeWrapper}:
let
s = # Generated upstream information
rec {
@ -31,9 +31,9 @@ stdenv.mkDerivation {
meta = {
inherit (s) version;
description = ''SPARQL server'';
license = stdenv.lib.licenses.asl20;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.asl20;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
homepage = "http://jena.apache.org";
downloadPage = "http://archive.apache.org/dist/jena/binaries/";
downloadURLRegexp = "apache-jena-fuseki-.*[.]tar[.]gz\$";

View file

@ -7,8 +7,8 @@
}:
let
libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc ];
binPath = with stdenv.lib; makeBinPath ([
libPath = lib.makeLibraryPath [ stdenv.cc.cc ];
binPath = with lib; makeBinPath ([
bash
getopt
gawk

Some files were not shown because too many files have changed in this diff Show more