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

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ util-linux man ] ++ stdenv.lib.optional enableCgiScripts gd; buildInputs = [ util-linux man ] ++ lib.optional enableCgiScripts gd;
prePatch = '' prePatch = ''
sed -e "s,\$(INSTALL_PROGRAM) \$(STRIP),\$(INSTALL_PROGRAM)," \ sed -e "s,\$(INSTALL_PROGRAM) \$(STRIP),\$(INSTALL_PROGRAM)," \
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
--with-lock-dir=/run/lock \ --with-lock-dir=/run/lock \
--with-pid-dir=/run \ --with-pid-dir=/run \
--enable-usb \ --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 = '' postFixup = ''
p="$out/lib/asterisk/modules/chan_sccp.so" 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; { meta = with lib; {

View file

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
"http://localhost:${toString port}/" "http://localhost:${toString port}/"
sed -r -i crowd-openidserver-webapp/WEB-INF/classes/crowd.properties \ sed -r -i crowd-openidserver-webapp/WEB-INF/classes/crowd.properties \
-e 's,application.password\s+password,application.password ${openidPassword},' -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 \ sed -i crowd-openidserver-webapp/WEB-INF/classes/crowd.properties \
-e 's,http://localhost:${toString port}/openidserver,${proxyUrl}/openidserver,' -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 -X github.com/trezor/blockbook/common.buildDate=unknown
''; '';
preBuild = stdenv.lib.optionalString stdenv.isDarwin '' preBuild = lib.optionalString stdenv.isDarwin ''
ulimit -n 8192 ulimit -n 8192
'' + '' '' + ''
export CGO_LDFLAGS="-L${stdenv.cc.cc.lib}/lib -lrocksdb -lz -lbz2 -lsnappy -llz4 -lm -lstdc++" 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 let
@ -55,8 +55,8 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "https://www.tinkerforge.com/"; 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"; 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 ]; maintainers = [ lib.maintainers.qknight ];
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

View file

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

View file

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

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
prePatch = '' prePatch = ''
substituteInPlace src/common/env.c \ substituteInPlace src/common/env.c \
--replace "/bin/echo" "${coreutils}/bin/echo" --replace "/bin/echo" "${coreutils}/bin/echo"
'' + (stdenv.lib.optionalString enableX11 '' '' + (lib.optionalString enableX11 ''
substituteInPlace src/common/x11_util.c \ substituteInPlace src/common/x11_util.c \
--replace '"/usr/bin/xauth"' '"${xorg.xauth}/bin/xauth"' --replace '"/usr/bin/xauth"' '"${xorg.xauth}/bin/xauth"'
''); '');
@ -50,9 +50,9 @@ stdenv.mkDerivation rec {
libmysqlclient ncurses gtk2 lz4 rdma-core libmysqlclient ncurses gtk2 lz4 rdma-core
lua hwloc numactl readline freeipmi shadow.su lua hwloc numactl readline freeipmi shadow.su
pmix pmix
] ++ stdenv.lib.optionals enableX11 [ xorg.xauth ]; ] ++ lib.optionals enableX11 [ xorg.xauth ];
configureFlags = with stdenv.lib; configureFlags = with lib;
[ "--with-freeipmi=${freeipmi}" [ "--with-freeipmi=${freeipmi}"
"--with-hwloc=${hwloc.dev}" "--with-hwloc=${hwloc.dev}"
"--with-lz4=${lz4.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 , dbus, rdma-core, libstatgrab, net-snmp
, enableDbus ? false , enableDbus ? false
, enableInfiniBandRdma ? false , enableInfiniBandRdma ? false
@ -6,7 +6,7 @@
, enableSnmp ? false , enableSnmp ? false
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "corosync"; pname = "corosync";

View file

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

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, python, dict, glibcLocales, writeScript}: {lib, stdenv, fetchurl, python, dict, glibcLocales, writeScript}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "20161001"; version = "20161001";
@ -26,6 +26,6 @@ stdenv.mkDerivation rec {
description = "DICT version of English Wiktionary"; description = "DICT version of English Wiktionary";
homepage = "http://en.wiktionary.org/"; homepage = "http://en.wiktionary.org/";
maintainers = [ ]; 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 { stdenv.mkDerivation rec {
version = "542"; version = "542";
@ -31,6 +31,6 @@ stdenv.mkDerivation rec {
homepage = "https://wordnet.princeton.edu/"; homepage = "https://wordnet.princeton.edu/";
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

View file

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

View file

@ -12,7 +12,7 @@ let # un-indented, over the whole file
result = if extraFeatures then wrapped-full else unwrapped; result = if extraFeatures then wrapped-full else unwrapped;
inherit (stdenv.lib) optional optionals optionalString; inherit (lib) optional optionals optionalString;
lua = luajitPackages; lua = luajitPackages;
unwrapped = stdenv.mkDerivation rec { 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 , openssl, systemd, lua, luajit, protobuf
, enableProtoBuf ? false , enableProtoBuf ? false
}: }:
assert enableProtoBuf -> protobuf != null; assert enableProtoBuf -> protobuf != null;
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pdns-recursor"; pname = "pdns-recursor";

View file

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

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin mkdir -p $out/bin
mkdir -p $out/share/java mkdir -p $out/share/java
mv target/$name.jar $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 # icu = null: use icu which comes with firebird
@ -56,8 +56,8 @@ stdenv.mkDerivation rec {
"--with-fbconf=/etc/firebird" "--with-fbconf=/etc/firebird"
"--with-fbsecure-db=/var/db/firebird/system" "--with-fbsecure-db=/var/db/firebird/system"
] ]
++ (stdenv.lib.optional (icu != null) "--with-system-icu") ++ (lib.optional (icu != null) "--with-system-icu")
++ (stdenv.lib.optional superServer "--enable-superserver"); ++ (lib.optional superServer "--enable-superserver");
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/firebird/Firebird-${version}.tar.bz2"; url = "mirror://sourceforge/firebird/Firebird-${version}.tar.bz2";
@ -83,8 +83,8 @@ stdenv.mkDerivation rec {
description = "SQL relational database management system"; description = "SQL relational database management system";
homepage = "https://www.firebirdnews.org"; homepage = "https://www.firebirdnews.org";
license = ["IDPL" "Interbase-1.0"]; license = ["IDPL" "Interbase-1.0"];
maintainers = [stdenv.lib.maintainers.marcweber]; maintainers = [lib.maintainers.marcweber];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
broken = true; broken = true;
}; };

View file

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

View file

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

View file

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

View file

@ -17,6 +17,6 @@ stdenv.mkDerivation rec {
description = "A distributed, scalable, big data store"; description = "A distributed, scalable, big data store";
homepage = "https://hbase.apache.org"; homepage = "https://hbase.apache.org";
license = licenses.asl20; 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"; description = "Automatic music downloader for SABnzbd";
license = licenses.gpl3; license = licenses.gpl3;
homepage = "https://github.com/rembo10/headphones"; 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 { buildGoPackage rec {
name = "holochain-go${version}"; 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"; longDescription = "Holographic storage for distributed applications -- a validating monotonic DHT backed by authoritative hashchains for data provenance";
homepage = "https://holochain.org/"; homepage = "https://holochain.org/";
downloadPage = "https://developer.holochain.org/"; downloadPage = "https://developer.holochain.org/";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ gavin ]; maintainers = with lib.maintainers; [ gavin ];
}; };
} }

View file

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

View file

@ -30,6 +30,6 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://www.zdziarski.com/blog/?page_id=442"; 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"; 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 let
version = "2.4.7.1"; version = "2.4.7.1";
@ -42,7 +42,7 @@ stdenv.mkDerivation {
more scalable. more scalable.
''; '';
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ]; maintainers = [ lib.maintainers.peti ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, apacheHttpd, python2 }: { lib, stdenv, fetchurl, apacheHttpd, python2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mod_python-3.5.0"; name = "mod_python-3.5.0";
@ -29,6 +29,6 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://modpython.org/"; homepage = "http://modpython.org/";
description = "An Apache module that embeds the Python interpreter within the server"; 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 { stdenv.mkDerivation rec {
pname = "mod_wsgi"; pname = "mod_wsgi";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "https://github.com/GrahamDumpleton/mod_wsgi"; homepage = "https://github.com/GrahamDumpleton/mod_wsgi";
description = "Host Python applications in Apache through the WSGI interface"; description = "Host Python applications in Apache through the WSGI interface";
license = stdenv.lib.licenses.asl20; license = lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost }: { lib, stdenv, fetchurl, boost }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mini-httpd-1.7"; name = "mini-httpd-1.7";
@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://mini-httpd.nongnu.org/"; homepage = "http://mini-httpd.nongnu.org/";
description = "minimalistic high-performance web server"; description = "minimalistic high-performance web server";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ]; 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 , nixosTests
, substituteAll, gd, geoip, perl , substituteAll, gd, geoip, perl
, withDebug ? false , withDebug ? false
@ -22,7 +22,7 @@
, meta ? null , meta ? null
}: }:
with stdenv.lib; with lib;
let let

View file

@ -1,4 +1,4 @@
{stdenv {lib, stdenv
, coreutils, findutils, nix, xz, bzip2, gnused, gnugrep, openssl , coreutils, findutils, nix, xz, bzip2, gnused, gnugrep, openssl
, lighttpd, iproute }: , lighttpd, iproute }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -47,15 +47,15 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = ''A set of scripts to serve the Nix store as a binary cache''; description = ''A set of scripts to serve the Nix store as a binary cache'';
longDescription = '' longDescription = ''
This package installs a CGI script that serves Nix store path in the This package installs a CGI script that serves Nix store path in the
binary cache format. It also installs a launcher called binary cache format. It also installs a launcher called
nix-binary-cache-start that can be run without any setup to launch nix-binary-cache-start that can be run without any setup to launch
a binary cache and get the example arguments for its usage. a binary cache and get the example arguments for its usage.
''; '';
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
inherit version; inherit version;
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
hydraPlatforms = []; 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 { stdenv.mkDerivation rec {
pname = "pshs"; pname = "pshs";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Pretty small HTTP server - a command-line tool to share files"; description = "Pretty small HTTP server - a command-line tool to share files";
homepage = "https://github.com/mgorny/pshs"; homepage = "https://github.com/mgorny/pshs";
license = stdenv.lib.licenses.bsd3; license = lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux; 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 }: , librdf_rasqal }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "An HTTP interface to Redland RDF store"; description = "An HTTP interface to Redland RDF store";
homepage = "https://www.aelius.com/njh/redstore/"; homepage = "https://www.aelius.com/njh/redstore/";
maintainers = [ stdenv.lib.maintainers.raskin ]; maintainers = [ lib.maintainers.raskin ];
platforms = with stdenv.lib.platforms; platforms = with lib.platforms;
linux ++ freebsd ++ gnu; 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 , substituteAll, gd, geoip, gperftools, jemalloc
, withDebug ? false , withDebug ? false
, withMail ? false , withMail ? false
@ -7,7 +7,7 @@
, ... , ...
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.3.2"; version = "2.3.2";

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{ stdenv, mysql_jdbc }: { lib, stdenv, mysql_jdbc }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "tomcat-mysql-jdbc"; name = "tomcat-mysql-jdbc";
@ -8,6 +8,6 @@ stdenv.mkDerivation {
inherit mysql_jdbc; inherit mysql_jdbc;
meta = { 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 , pcre2
, withPython2 ? false, python2 , withPython2 ? false, python2
, withPython3 ? true, python3, ncurses , withPython3 ? true, python3, ncurses
@ -15,7 +15,7 @@
, withDebug ? false , withDebug ? false
}: }:
with stdenv.lib; with lib;
let let
phpConfig = { phpConfig = {

View file

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

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl, zlib }: { lib, stdenv, fetchurl, openssl, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ircd-hybrid-8.2.35"; name = "ircd-hybrid-8.2.35";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "An IPv6-capable IRC server"; description = "An IPv6-capable IRC server";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
homepage = "https://www.ircd-hybrid.org/"; 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 { stdenv.mkDerivation rec {
pname = "ngircd"; pname = "ngircd";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Next Generation IRC Daemon"; description = "Next Generation IRC Daemon";
homepage = "https://ngircd.barton.de"; homepage = "https://ngircd.barton.de";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

View file

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

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
makeWrapper "${mono}/bin/mono" $out/bin/Jackett \ makeWrapper "${mono}/bin/mono" $out/bin/Jackett \
--add-flags "$out/share/${pname}-${version}/JackettConsole.exe" \ --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; { meta = with lib; {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -18,12 +18,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ coreutils db openssl perl pcre ] buildInputs = [ coreutils db openssl perl pcre ]
++ stdenv.lib.optional enableLDAP openldap ++ lib.optional enableLDAP openldap
++ stdenv.lib.optionals enableMySQL [ libmysqlclient zlib ] ++ lib.optionals enableMySQL [ libmysqlclient zlib ]
++ stdenv.lib.optional enableAuthDovecot dovecot ++ lib.optional enableAuthDovecot dovecot
++ stdenv.lib.optional enablePAM pam ++ lib.optional enablePAM pam
++ stdenv.lib.optional enableSPF libspf2 ++ lib.optional enableSPF libspf2
++ stdenv.lib.optional enableDMARC opendmarc; ++ lib.optional enableDMARC opendmarc;
preBuild = '' preBuild = ''
sed ' sed '
@ -49,32 +49,32 @@ stdenv.mkDerivation rec {
s:^# \(TOUCH_COMMAND\)=.*:\1=${coreutils}/bin/touch: s:^# \(TOUCH_COMMAND\)=.*:\1=${coreutils}/bin/touch:
s:^# \(PERL_COMMAND\)=.*:\1=${perl}/bin/perl: s:^# \(PERL_COMMAND\)=.*:\1=${perl}/bin/perl:
s:^# \(LOOKUP_DSEARCH=yes\)$:\1: s:^# \(LOOKUP_DSEARCH=yes\)$:\1:
${stdenv.lib.optionalString enableLDAP '' ${lib.optionalString enableLDAP ''
s:^# \(LDAP_LIB_TYPE=OPENLDAP2\)$:\1: s:^# \(LDAP_LIB_TYPE=OPENLDAP2\)$:\1:
s:^# \(LOOKUP_LDAP=yes\)$:\1: s:^# \(LOOKUP_LDAP=yes\)$:\1:
s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lldap -llber: s:^\(LOOKUP_LIBS\)=\(.*\):\1=\2 -lldap -llber:
s:^# \(LOOKUP_LIBS\)=.*:\1=-lldap -llber: s:^# \(LOOKUP_LIBS\)=.*:\1=-lldap -llber:
''} ''}
${stdenv.lib.optionalString enableMySQL '' ${lib.optionalString enableMySQL ''
s:^# \(LOOKUP_MYSQL=yes\)$:\1: s:^# \(LOOKUP_MYSQL=yes\)$:\1:
s:^# \(LOOKUP_MYSQL_PC=libmysqlclient\)$:\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=\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_LIBS\)=.*:\1=-lmysqlclient -L${libmysqlclient}/lib/mysql -lssl -ldl -lm -lpthread -lz:
s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${libmysqlclient}/include/mysql/: s:^# \(LOOKUP_INCLUDE\)=.*:\1=-I${libmysqlclient}/include/mysql/:
''} ''}
${stdenv.lib.optionalString enableAuthDovecot '' ${lib.optionalString enableAuthDovecot ''
s:^# \(AUTH_DOVECOT\)=.*:\1=yes: s:^# \(AUTH_DOVECOT\)=.*:\1=yes:
''} ''}
${stdenv.lib.optionalString enablePAM '' ${lib.optionalString enablePAM ''
s:^# \(SUPPORT_PAM\)=.*:\1=yes: s:^# \(SUPPORT_PAM\)=.*:\1=yes:
s:^\(EXTRALIBS_EXIM\)=\(.*\):\1=\2 -lpam: s:^\(EXTRALIBS_EXIM\)=\(.*\):\1=\2 -lpam:
s:^# \(EXTRALIBS_EXIM\)=.*:\1=-lpam: s:^# \(EXTRALIBS_EXIM\)=.*:\1=-lpam:
''} ''}
${stdenv.lib.optionalString enableSPF '' ${lib.optionalString enableSPF ''
s:^# \(SUPPORT_SPF\)=.*:\1=yes: s:^# \(SUPPORT_SPF\)=.*:\1=yes:
s:^# \(LDFLAGS += -lspf2\):\1: s:^# \(LDFLAGS += -lspf2\):\1:
''} ''}
${stdenv.lib.optionalString enableDMARC '' ${lib.optionalString enableDMARC ''
s:^# \(SUPPORT_DMARC\)=.*:\1=yes: s:^# \(SUPPORT_DMARC\)=.*:\1=yes:
s:^# \(LDFLAGS += -lopendmarc\):\1: 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 , flufl_bounce, flufl_i18n, flufl_lock, lazr_config, lazr_delegates, passlib
, requests, zope_configuration, click, falcon, importlib-resources , requests, zope_configuration, click, falcon, importlib-resources
, zope_component, lynx, postfix, authheaders, gunicorn , zope_component, lynx, postfix, authheaders, gunicorn
@ -53,7 +53,7 @@ buildPythonPackage rec {
meta = { meta = {
homepage = "https://www.gnu.org/software/mailman/"; homepage = "https://www.gnu.org/software/mailman/";
description = "Free software for managing electronic mail discussion and newsletter lists"; description = "Free software for managing electronic mail discussion and newsletter lists";
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with stdenv.lib.maintainers; [ peti ]; 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 , robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
, django-haystack, flufl_lock, networkx, dateutil, defusedxml , django-haystack, flufl_lock, networkx, dateutil, defusedxml
, django-paintstore, djangorestframework, django, django-q , django-paintstore, djangorestframework, django, django-q
@ -38,8 +38,8 @@ buildPythonPackage rec {
meta = { meta = {
homepage = "https://www.gnu.org/software/mailman/"; homepage = "https://www.gnu.org/software/mailman/";
description = "Archiver for GNU Mailman v3"; description = "Archiver for GNU Mailman v3";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ peti globin ]; 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 , django-mailman3, mailmanclient, readme_renderer
}: }:
@ -20,7 +20,7 @@ buildPythonPackage rec {
meta = { meta = {
homepage = "https://www.gnu.org/software/mailman/"; homepage = "https://www.gnu.org/software/mailman/";
description = "Web-based user interface for managing GNU Mailman"; description = "Web-based user interface for managing GNU Mailman";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ globin peti ]; maintainers = with lib.maintainers; [ globin peti ];
}; };
} }

View file

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

View file

@ -48,37 +48,37 @@ stdenv.mkDerivation rec {
"--with-scheduler-ram" "--with-scheduler-ram"
"--with-scheduler-stub" "--with-scheduler-stub"
] ++ stdenv.lib.optionals enablePython [ ] ++ lib.optionals enablePython [
"--with-python=${python2}" "--with-python=${python2}"
"--with-filter-python" "--with-filter-python"
"--with-queue-python" "--with-queue-python"
"--with-table-python" "--with-table-python"
"--with-scheduler-python" "--with-scheduler-python"
] ++ stdenv.lib.optionals enableLua [ ] ++ lib.optionals enableLua [
"--with-lua=${pkgconfig}" "--with-lua=${pkgconfig}"
"--with-filter-lua" "--with-filter-lua"
] ++ stdenv.lib.optionals enablePerl [ ] ++ lib.optionals enablePerl [
"--with-perl=${perl}" "--with-perl=${perl}"
"--with-filter-perl" "--with-filter-perl"
] ++ stdenv.lib.optionals enableMysql [ ] ++ lib.optionals enableMysql [
"--with-table-mysql" "--with-table-mysql"
] ++ stdenv.lib.optionals enablePostgres [ ] ++ lib.optionals enablePostgres [
"--with-table-postgres" "--with-table-postgres"
] ++ stdenv.lib.optionals enableSqlite [ ] ++ lib.optionals enableSqlite [
"--with-table-sqlite" "--with-table-sqlite"
] ++ stdenv.lib.optionals enableRedis [ ] ++ lib.optionals enableRedis [
"--with-table-redis" "--with-table-redis"
]; ];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString enableRedis NIX_CFLAGS_COMPILE = lib.optionalString enableRedis
"-I${hiredis}/include/hiredis -lhiredis" "-I${hiredis}/include/hiredis -lhiredis"
+ stdenv.lib.optionalString enableMysql + lib.optionalString enableMysql
" -L${libmysqlclient}/lib/mysql"; " -L${libmysqlclient}/lib/mysql";
meta = with lib; { 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 { stdenv.mkDerivation rec {
name = "petidomo-4.3"; name = "petidomo-4.3";
@ -19,9 +19,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://petidomo.sourceforge.net/"; homepage = "http://petidomo.sourceforge.net/";
description = "A simple and easy to administer mailing list server"; description = "A simple and easy to administer mailing list server";
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.peti ]; maintainers = [ lib.maintainers.peti ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl }: { lib, stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -23,6 +23,6 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://www.openwall.com/popa3d/"; homepage = "http://www.openwall.com/popa3d/";
description = "Tiny POP3 daemon with security as the primary goal"; 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 ./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 's!bin/postconf!${buildPackages.postfix}/bin/postconf!' -i postfix-install
'' + '' '' + ''
sed -e '/^PATH=/d' -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"; description = "A collection of postfix-related tools";
license = with lib.licenses; [ bsd3 ]; license = with lib.licenses; [ bsd3 ];
homepage = "https://github.com/Fruneau/pfixtools"; homepage = "https://github.com/Fruneau/pfixtools";
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ jerith666 ]; maintainers = with lib.maintainers; [ jerith666 ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perlPackages }: { lib, stdenv, fetchurl, perlPackages }:
perlPackages.buildPerlPackage rec { perlPackages.buildPerlPackage rec {
pname = "pflogsumm"; pname = "pflogsumm";
@ -27,8 +27,8 @@ perlPackages.buildPerlPackage rec {
meta = { meta = {
homepage = "http://jimsun.linxnet.com/postfix_contrib.html"; homepage = "http://jimsun.linxnet.com/postfix_contrib.html";
maintainers = with stdenv.lib.maintainers; [ schneefux ]; maintainers = with lib.maintainers; [ schneefux ];
description = "Postfix activity overview"; 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 { perlPackages.buildPerlPackage rec {
pname = "SpamAssassin"; pname = "SpamAssassin";
@ -35,8 +35,8 @@ perlPackages.buildPerlPackage rec {
meta = { meta = {
homepage = "http://spamassassin.apache.org/"; homepage = "http://spamassassin.apache.org/";
description = "Open-Source Spam Filter"; description = "Open-Source Spam Filter";
license = stdenv.lib.licenses.asl20; license = lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ peti qknight qyliss ]; maintainers = with lib.maintainers; [ peti qknight qyliss ];
}; };
} }

View file

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

View file

@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0cyxa200iz7knkma4zi3mzky3g0kibbxd5303psk2rl2rppir0f7"; 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; { meta = with lib; {
homepage = "https://github.com/robertohuertasm/microserver"; homepage = "https://github.com/robertohuertasm/microserver";

View file

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

View file

@ -1,4 +1,4 @@
{ mkDerivation, fetchFromGitHub, base, bytestring, network, stdenv }: { mkDerivation, fetchFromGitHub, base, bytestring, network, lib, stdenv }:
mkDerivation { mkDerivation {
pname = "client-ip-echo"; pname = "client-ip-echo";
version = "0.1.0.5"; version = "0.1.0.5";
@ -12,5 +12,5 @@ mkDerivation {
isExecutable = true; isExecutable = true;
executableHaskellDepends = [ base bytestring network ]; executableHaskellDepends = [ base bytestring network ];
description = "accepts TCP connections and echoes the client's IP address back to it"; 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 { stdenv.mkDerivation rec {
pname = "navidrome"; pname = "navidrome";

View file

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

View file

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

View file

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

View file

@ -17,9 +17,9 @@ buildGoModule rec {
subPackages = [ "..." ]; subPackages = [ "..." ];
nativeBuildInputs = [ makeWrapper ]; 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 \ wrapProgram $out/bin/promtail \
--prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib" --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 { stdenv.mkDerivation rec {
pname = "nagios"; pname = "nagios";
@ -35,8 +35,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A host, service and network monitoring program"; description = "A host, service and network monitoring program";
homepage = "https://www.nagios.org/"; homepage = "https://www.nagios.org/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ immae thoughtpolice relrod ]; maintainers = with lib.maintainers; [ immae thoughtpolice relrod ];
}; };
} }

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/check_ssl_cert \ 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; { meta = with lib; {

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
"--with-openssl=${openssl.dev}" "--with-openssl=${openssl.dev}"
"--disable-embedded-perl" "--disable-embedded-perl"
"--without-perl-modules" "--without-perl-modules"
] ++ stdenv.lib.optional stdenv.isLinux "--with-mnttab=/proc/mounts"; ] ++ lib.optional stdenv.isLinux "--with-mnttab=/proc/mounts";
postPatch = '' postPatch = ''
substituteInPlace testing/fulltests/support/simple_TESTCONF.sh --replace "/bin/netstat" "${nettools}/bin/netstat" 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 , coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps , dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
, runtimeShell }: , runtimeShell }:
with stdenv.lib; with lib;
let let
majorVersion = "2.2"; majorVersion = "2.2";

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub, makeWrapper, nixosTests { stdenv, lib, buildGoPackage, fetchFromGitHub, makeWrapper, nixosTests
, systemd, withSystemdSupport ? true }: , systemd, withSystemdSupport ? true }:
with stdenv.lib; with lib;
buildGoPackage rec { buildGoPackage rec {
pname = "postfix_exporter"; 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.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.BuildUser=${buildUser}
-X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.BuildDate=${buildDate} -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; doInstallCheck = true;

View file

@ -6,7 +6,7 @@ import ./versions.nix ({ version, sha256 }:
inherit version; inherit version;
src = fetchurl { 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; inherit sha256;
}; };

View file

@ -13,7 +13,7 @@ assert postgresqlSupport -> !mysqlSupport && !sqliteSupport;
assert sqliteSupport -> !mysqlSupport && !postgresqlSupport; assert sqliteSupport -> !mysqlSupport && !postgresqlSupport;
let let
inherit (stdenv.lib) optional optionalString; inherit (lib) optional optionalString;
in in
import ./versions.nix ({ version, sha256 }: import ./versions.nix ({ version, sha256 }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -21,7 +21,7 @@ in
inherit version; inherit version;
src = fetchurl { 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; inherit sha256;
}; };

View file

@ -13,7 +13,7 @@ assert mysqlSupport -> !postgresqlSupport;
assert postgresqlSupport -> !mysqlSupport; assert postgresqlSupport -> !mysqlSupport;
let let
inherit (stdenv.lib) optional optionalString; inherit (lib) optional optionalString;
in in
import ./versions.nix ({ version, sha256 }: import ./versions.nix ({ version, sha256 }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -21,7 +21,7 @@ in
inherit version; inherit version;
src = fetchurl { 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; inherit sha256;
}; };

View file

@ -6,7 +6,7 @@ import ./versions.nix ({ version, sha256 }:
inherit version; inherit version;
src = fetchurl { 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; inherit sha256;
}; };
@ -18,7 +18,7 @@ import ./versions.nix ({ version, sha256 }:
installPhase = '' installPhase = ''
mkdir -p $out/share/zabbix/ 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 cp ${phpConfig} $out/share/zabbix/conf/zabbix.conf.php
''; '';

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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