Merge pull request #116535 from SuperSandro2000/fix-collection27

This commit is contained in:
Sandro
2021-03-18 13:43:53 +01:00
committed by GitHub
22 changed files with 64 additions and 58 deletions
+1 -2
View File
@@ -19,10 +19,9 @@ let
requests
websocket_client
ipaddress
backports_ssl_match_hostname
docker_pycreds
uptime
];
] ++ lib.optionals (self.pythonOlder "3.7") [ backports_ssl_match_hostname ];
# due to flake8
doCheck = false;
+4 -7
View File
@@ -3,20 +3,17 @@
, pkg-config
, makeWrapper
, runtimeShell
, iproute ? null
, iproute
, lzo
, openssl
, pam
, useSystemd ? stdenv.isLinux
, systemd ? null
, util-linux ? null
, systemd
, util-linux
, pkcs11Support ? false
, pkcs11helper ? null
, pkcs11helper
}:
assert useSystemd -> (systemd != null);
assert pkcs11Support -> (pkcs11helper != null);
with lib;
let
# Check if the script needs to have other binaries wrapped when changing this.
@@ -1,16 +1,15 @@
{ lib, stdenv
{ lib
, stdenv
, fetchzip
, nixosTests
, iptables ? null
, iproute ? null
, makeWrapper ? null
, openresolv ? null
, procps ? null
, wireguard-go ? null
, iptables
, iproute
, makeWrapper
, openresolv
, procps
, wireguard-go
}:
with lib;
stdenv.mkDerivation rec {
pname = "wireguard-tools";
version = "1.0.20210315";
@@ -37,11 +36,11 @@ stdenv.mkDerivation rec {
postFixup = ''
substituteInPlace $out/lib/systemd/system/wg-quick@.service \
--replace /usr/bin $out/bin
'' + optionalString stdenv.isLinux ''
'' + lib.optionalString stdenv.isLinux ''
for f in $out/bin/*; do
wrapProgram $f --prefix PATH : ${makeBinPath [procps iproute iptables openresolv]}
wrapProgram $f --prefix PATH : ${lib.makeBinPath [ procps iproute iptables openresolv ]}
done
'' + optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
for f in $out/bin/*; do
wrapProgram $f --prefix PATH : ${wireguard-go}/bin
done
@@ -52,7 +51,7 @@ stdenv.mkDerivation rec {
tests = nixosTests.wireguard;
};
meta = {
meta = with lib; {
description = "Tools for the WireGuard secure network tunnel";
downloadPage = "https://git.zx2c4.com/wireguard-tools/refs/";
homepage = "https://www.wireguard.com/";