Merge remote-tracking branch 'upstream/staging-next' into staging
This commit is contained in:
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1i7nhbq1fcbrjwfg64znz8p4l7662f7qz2l6xcvwd5z93dnmgmdr";
|
||||
};
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"CXX=${stdenv.cc.targetPrefix}c++"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/hogliux/bomutils";
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tnat64";
|
||||
version = "0.05";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "andrewshadura";
|
||||
repo = pname;
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "07lmzidbrd3aahk2jvv93cic9gf36pwmgfd63gmy6hjkxf9a6fw9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Fix usage of deprecated sys_errlist
|
||||
substituteInPlace tnat64.c --replace 'sys_errlist[errno]' 'strerror(errno)'
|
||||
'';
|
||||
|
||||
configureFlags = [ "--libdir=$(out)/lib" ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "IPv4 to IPv6 interceptor";
|
||||
homepage = "https://github.com/andrewshadura/tnat64";
|
||||
license = licenses.gpl2Plus;
|
||||
longDescription = ''
|
||||
TNAT64 is an interceptor which redirects outgoing TCPv4 connections
|
||||
through NAT64, thus enabling an application running on an IPv6-only host
|
||||
to communicate with the IPv4 world, even if that application does not
|
||||
support IPv6 at all.
|
||||
'';
|
||||
platforms = platforms.unix;
|
||||
badPlatforms = platforms.darwin;
|
||||
maintainers = [ maintainers.rnhmjoj ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, rustPlatform, fetchFromGitHub, nixosTests
|
||||
, pkg-config, openssl
|
||||
, Security, CoreServices
|
||||
, libiconv, Security, CoreServices
|
||||
, dbBackend ? "sqlite", libmysqlclient, postgresql }:
|
||||
|
||||
let
|
||||
@@ -19,7 +19,7 @@ in rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = with lib; [ openssl ]
|
||||
++ optionals stdenv.isDarwin [ Security CoreServices ]
|
||||
++ optionals stdenv.isDarwin [ libiconv Security CoreServices ]
|
||||
++ optional (dbBackend == "mysql") libmysqlclient
|
||||
++ optional (dbBackend == "postgresql") postgresql;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user