Merge pull request #116335 from SuperSandro2000/move-aliases.nix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, fetchurl, perlPackages, iproute, perl }:
|
||||
{ lib, fetchurl, perlPackages, iproute2, perl }:
|
||||
|
||||
perlPackages.buildPerlPackage rec {
|
||||
pname = "ddclient";
|
||||
@@ -19,8 +19,8 @@ perlPackages.buildPerlPackage rec {
|
||||
touch Makefile.PL
|
||||
substituteInPlace ddclient \
|
||||
--replace 'in the output of ifconfig' 'in the output of ip addr show' \
|
||||
--replace 'ifconfig -a' '${iproute}/sbin/ip addr show' \
|
||||
--replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg' \
|
||||
--replace 'ifconfig -a' '${iproute2}/sbin/ip addr show' \
|
||||
--replace 'ifconfig $arg' '${iproute2}/sbin/ip addr show $arg' \
|
||||
--replace '/usr/bin/perl' '${perl}/bin/perl' # Until we get the patchShebangs fixed (issue #55786) we need to patch this manually
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, perl, file, nettools, iputils, iproute, makeWrapper
|
||||
{ stdenv, fetchurl, perl, file, nettools, iputils, iproute2, makeWrapper
|
||||
, coreutils, gnused, openldap ? null
|
||||
, buildPackages, lib
|
||||
}:
|
||||
@@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cp client/scripts/linux $out/sbin/dhclient-script
|
||||
substituteInPlace $out/sbin/dhclient-script \
|
||||
--replace /sbin/ip ${iproute}/sbin/ip
|
||||
--replace /sbin/ip ${iproute2}/sbin/ip
|
||||
wrapProgram "$out/sbin/dhclient-script" --prefix PATH : \
|
||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin:${coreutils}/bin:${gnused}/bin"
|
||||
'';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, openssl, gmp, zlib, iproute, nettools }:
|
||||
{ lib, stdenv, fetchurl, openssl, gmp, zlib, iproute2, nettools }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gvpe";
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
sed -e 's@"/sbin/ifconfig.*"@"${iproute}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
||||
sed -e 's@"/sbin/ifconfig.*"@"${iproute2}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
|
||||
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ lib, stdenv, fetchurl, makeWrapper,
|
||||
pkg-config, systemd, gmp, unbound, bison, flex, pam, libevent, libcap_ng, curl, nspr,
|
||||
bash, iproute, iptables, procps, coreutils, gnused, gawk, nss, which, python3,
|
||||
bash, iproute2, iptables, procps, coreutils, gnused, gawk, nss, which, python3,
|
||||
docs ? false, xmlto, libselinux, ldns
|
||||
}:
|
||||
|
||||
let
|
||||
binPath = lib.makeBinPath [
|
||||
bash iproute iptables procps coreutils gnused gawk nss.tools which python3
|
||||
bash iproute2 iptables procps coreutils gnused gawk nss.tools which python3
|
||||
];
|
||||
in
|
||||
|
||||
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [ bash iproute iptables systemd coreutils gnused gawk gmp unbound pam libevent
|
||||
buildInputs = [ bash iproute2 iptables systemd coreutils gnused gawk gmp unbound pam libevent
|
||||
libcap_ng curl nspr nss python3 ldns ]
|
||||
++ lib.optional docs xmlto
|
||||
++ lib.optional stdenv.isLinux libselinux;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glibc
|
||||
, bison, curl, flex, gperftools, jansson, jemalloc, kerberos, lua, libmysqlclient
|
||||
, bison, curl, flex, gperftools, jansson, jemalloc, libkrb5, lua, libmysqlclient
|
||||
, ncurses, openssl, pcre, pcre2, perl, rabbitmq-c, sqlite, tcl
|
||||
, libaio, libedit, libtool, libui, libuuid, zlib
|
||||
}:
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
bison curl flex gperftools jansson jemalloc kerberos lua libmysqlclient
|
||||
bison curl flex gperftools jansson jemalloc libkrb5 lua libmysqlclient
|
||||
ncurses openssl pcre pcre2 perl rabbitmq-c sqlite tcl
|
||||
libaio libedit libtool libui libuuid zlib
|
||||
];
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ stdenv, lib, fetchurl, iptables, libuuid, pkg-config
|
||||
, which, iproute, gnused, coreutils, gawk, makeWrapper
|
||||
, which, iproute2, gnused, coreutils, gawk, makeWrapper
|
||||
}:
|
||||
|
||||
let
|
||||
scriptBinEnv = lib.makeBinPath [ which iproute iptables gnused coreutils gawk ];
|
||||
scriptBinEnv = lib.makeBinPath [ which iproute2 iptables gnused coreutils gawk ];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "miniupnpd-2.1.20190502";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, nettools, iproute, judy }:
|
||||
{ lib, stdenv, fetchurl, nettools, iproute2, judy }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.2.6";
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace misc/client-hook.bsd \
|
||||
--replace '/sbin/route' '${nettools}/bin/route' \
|
||||
--replace '/sbin/ifconfig' '${nettools}/bin/ifconfig'
|
||||
substituteInPlace misc/client-hook.iproute --replace '/sbin/ip' '${iproute}/bin/ip'
|
||||
substituteInPlace misc/client-hook.iproute --replace '/sbin/ip' '${iproute2}/bin/ip'
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-Judy" ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, yacc, lzo, db4 }:
|
||||
{ lib, stdenv, fetchurl, bison, lzo, db4 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "netboot-0.10.2";
|
||||
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
|
||||
};
|
||||
|
||||
buildInputs = [ yacc lzo db4 ];
|
||||
buildInputs = [ bison lzo db4 ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, autoconf, automake, libtool, pkg-config
|
||||
, bzip2, libpcap, flex, yacc }:
|
||||
, bzip2, libpcap, flex, bison }:
|
||||
|
||||
let version = "1.6.22"; in
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
|
||||
sha256 = "14x2k85ard1kp99hhd90zsmvyw24g03m84rn13gb4grm9gjggzrj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoconf automake flex libtool pkg-config yacc ];
|
||||
nativeBuildInputs = [ autoconf automake flex libtool pkg-config bison ];
|
||||
buildInputs = [ bzip2 libpcap ];
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
, pam
|
||||
, etcDir ? null
|
||||
, withKerberos ? true
|
||||
, kerberos
|
||||
, libkrb5
|
||||
, libfido2
|
||||
, withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl
|
||||
, linkOpenssl ? true
|
||||
@@ -45,14 +45,14 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ]
|
||||
# This is not the same as the kerberos from the inputs! pkgs.kerberos is
|
||||
# This is not the same as the libkrb5 from the inputs! pkgs.libkrb5 is
|
||||
# needed here to access krb5-config in order to cross compile. See:
|
||||
# https://github.com/NixOS/nixpkgs/pull/107606
|
||||
++ optional withKerberos pkgs.kerberos
|
||||
++ optional withKerberos pkgs.libkrb5
|
||||
++ extraNativeBuildInputs;
|
||||
buildInputs = [ zlib openssl libedit ]
|
||||
++ optional withFIDO libfido2
|
||||
++ optional withKerberos kerberos
|
||||
++ optional withKerberos libkrb5
|
||||
++ optional stdenv.isLinux pam;
|
||||
|
||||
preConfigure = ''
|
||||
@@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||
# Kerberos can be found either by krb5-config or by fall-back shell
|
||||
# code in openssh's configure.ac. Neither of them support static
|
||||
# build, but patching code for krb5-config is simpler, so to get it
|
||||
# into PATH, kerberos.dev is added into buildInputs.
|
||||
# into PATH, libkrb5.dev is added into buildInputs.
|
||||
+ optionalString stdenv.hostPlatform.isStatic ''
|
||||
sed -i "s,PKGCONFIG --libs,PKGCONFIG --libs --static,g" configure
|
||||
sed -i 's#KRB5CONF --libs`#KRB5CONF --libs` -lkrb5support -lkeyutils#g' configure
|
||||
@@ -89,7 +89,7 @@ stdenv.mkDerivation rec {
|
||||
(if stdenv.isLinux then "--with-pam" else "--without-pam")
|
||||
] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
|
||||
++ optional withFIDO "--with-security-key-builtin=yes"
|
||||
++ optional withKerberos (assert kerberos != null; "--with-kerberos5=${kerberos}")
|
||||
++ optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}")
|
||||
++ optional stdenv.isDarwin "--disable-libutil"
|
||||
++ optional (!linkOpenssl) "--without-openssl";
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, runtimeShell
|
||||
, iproute
|
||||
, iproute2
|
||||
, lzo
|
||||
, openssl
|
||||
, pam
|
||||
@@ -40,13 +40,13 @@ let
|
||||
|
||||
buildInputs = [ lzo openssl ]
|
||||
++ optional stdenv.isLinux pam
|
||||
++ optional withIpRoute iproute
|
||||
++ optional withIpRoute iproute2
|
||||
++ optional useSystemd systemd
|
||||
++ optional pkcs11Support pkcs11helper;
|
||||
|
||||
configureFlags = optionals withIpRoute [
|
||||
"--enable-iproute2"
|
||||
"IPROUTE=${iproute}/sbin/ip"
|
||||
"IPROUTE=${iproute2}/sbin/ip"
|
||||
]
|
||||
++ optional useSystemd "--enable-systemd"
|
||||
++ optional pkcs11Support "--enable-pkcs11"
|
||||
@@ -60,7 +60,7 @@ let
|
||||
'' + optionalString useSystemd ''
|
||||
install -Dm555 ${update-resolved} $out/libexec/update-systemd-resolved
|
||||
wrapProgram $out/libexec/update-systemd-resolved \
|
||||
--prefix PATH : ${makeBinPath [ runtimeShell iproute systemd util-linux ]}
|
||||
--prefix PATH : ${makeBinPath [ runtimeShell iproute2 systemd util-linux ]}
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, iproute, systemd, coreutils, util-linux }:
|
||||
, iproute2, systemd, coreutils, util-linux }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "update-systemd-resolved";
|
||||
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
wrapProgram $out/libexec/openvpn/update-systemd-resolved \
|
||||
--prefix PATH : ${lib.makeBinPath [ iproute systemd coreutils util-linux ]}
|
||||
--prefix PATH : ${lib.makeBinPath [ iproute2 systemd coreutils util-linux ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, perl, ppp, iproute }:
|
||||
{ lib, stdenv, fetchurl, perl, ppp, iproute2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pptp";
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
makeFlagsArray=( IP=${iproute}/bin/ip PPPD=${ppp}/sbin/pppd \
|
||||
makeFlagsArray=( IP=${iproute2}/bin/ip PPPD=${ppp}/sbin/pppd \
|
||||
BINDIR=$out/sbin MANDIR=$out/share/man/man8 \
|
||||
PPPDIR=$out/etc/ppp )
|
||||
'';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
, fetchurl
|
||||
, gnugrep
|
||||
, gnused
|
||||
, iproute
|
||||
, iproute2
|
||||
, ipset
|
||||
, iptables
|
||||
, perl
|
||||
@@ -15,7 +15,7 @@
|
||||
let
|
||||
PATH = lib.concatStringsSep ":"
|
||||
[ "${coreutils}/bin"
|
||||
"${iproute}/bin"
|
||||
"${iproute2}/bin"
|
||||
"${iptables}/bin"
|
||||
"${ipset}/bin"
|
||||
"${ebtables}/bin"
|
||||
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
coreutils
|
||||
iproute
|
||||
iproute2
|
||||
ipset
|
||||
iptables
|
||||
ebtables
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchFromGitHub, bash, makeWrapper, git, mysql, diffutils, which, coreutils, procps, nettools
|
||||
{ lib, stdenv, fetchFromGitHub, bash, makeWrapper, git, mariadb, diffutils, which, coreutils, procps, nettools
|
||||
,supportOpenstack ? true
|
||||
}:
|
||||
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
done
|
||||
'' + optionalString supportOpenstack ''
|
||||
# We need a way to pass $PATH to the scripts
|
||||
sed -i '2iexport PATH=${git}/bin:${mysql}/bin:${which}/bin:${procps}/bin:${coreutils}/bin' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
|
||||
sed -i '2iexport PATH=${git}/bin:${mariadb}/bin:${which}/bin:${procps}/bin:${coreutils}/bin' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
|
||||
sed -i '2iexport PATH=${git}/bin:${coreutils}/bin:${diffutils}/bin:${nettools}/bin' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, fetchpatch, openssl, lzo, zlib, yacc, flex }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, openssl, lzo, zlib, bison, flex }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vtun-3.0.4";
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e 's/-m 755//' -e 's/-o root -g 0//' Makefile.in
|
||||
sed -i '/strip/d' Makefile.in
|
||||
'';
|
||||
buildInputs = [ lzo openssl zlib yacc flex ];
|
||||
buildInputs = [ lzo openssl zlib bison flex ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-lzo-headers=${lzo}/include/lzo"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
, libhsts
|
||||
, libidn2
|
||||
, libpsl
|
||||
, lzma
|
||||
, xz
|
||||
, nghttp2
|
||||
, sslSupport ? true
|
||||
, openssl
|
||||
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook flex lzip pkg-config python3 texinfo ];
|
||||
|
||||
buildInputs = [ brotli bzip2 gpgme libhsts libidn2 libpsl lzma nghttp2 pcre2 zlib zstd ]
|
||||
buildInputs = [ brotli bzip2 gpgme libhsts libidn2 libpsl xz nghttp2 pcre2 zlib zstd ]
|
||||
++ lib.optional sslSupport openssl;
|
||||
|
||||
# TODO: include translation files
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchurl, python2Packages
|
||||
, wpa_supplicant, dhcp, dhcpcd, wirelesstools
|
||||
, nettools, openresolv, iproute, iputils }:
|
||||
, nettools, openresolv, iproute2, iputils }:
|
||||
|
||||
let
|
||||
inherit (python2Packages) python pygobject2 dbus-python pyGtkGlade pycairo;
|
||||
@@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
substituteInPlace in/scripts=wicd.in --subst-var-by TEMPLATE-DEFAULT $out/share/other/dhclient.conf.template.default
|
||||
|
||||
sed -i "2iexport PATH=${lib.makeBinPath [ python wpa_supplicant dhcpcd dhcp wirelesstools nettools nettools iputils openresolv iproute ]}\$\{PATH:+:\}\$PATH" in/scripts=wicd.in
|
||||
sed -i "2iexport PATH=${lib.makeBinPath [ python wpa_supplicant dhcpcd dhcp wirelesstools nettools nettools iputils openresolv iproute2 ]}\$\{PATH:+:\}\$PATH" in/scripts=wicd.in
|
||||
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pygobject2}):$(toPythonPath ${dbus-python})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd.in
|
||||
sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-client.in
|
||||
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject2}):$(toPythonPath ${pygobject2})/gtk-2.0:$(toPythonPath ${pycairo}):$(toPythonPath ${dbus-python})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-client.in
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
, fetchzip
|
||||
, nixosTests
|
||||
, iptables
|
||||
, iproute
|
||||
, iproute2
|
||||
, makeWrapper
|
||||
, openresolv
|
||||
, procps
|
||||
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
||||
--replace /usr/bin $out/bin
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
for f in $out/bin/*; do
|
||||
wrapProgram $f --prefix PATH : ${lib.makeBinPath [ procps iproute iptables openresolv ]}
|
||||
wrapProgram $f --prefix PATH : ${lib.makeBinPath [ procps iproute2 iptables openresolv ]}
|
||||
done
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
for f in $out/bin/*; do
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, buildPackages, fetchFromGitHub, openssl, lzo, zlib, iproute, ronn }:
|
||||
{ lib, stdenv, buildPackages, fetchFromGitHub, openssl, lzo, zlib, iproute2, ronn }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zerotierone";
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
|
||||
nativeBuildInputs = [ ronn ];
|
||||
buildInputs = [ openssl lzo zlib iproute ];
|
||||
buildInputs = [ openssl lzo zlib iproute2 ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user