mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 16:46:09 +00:00
b51d39fbe4
This fixes the issues with glibc 2.30, which were caused because glibc no longer allows to dlopen/LD_PRELOAD a PIE executable. So this release is essentially just a hotfix release which addresses this issue by splitting the executable and library. Signed-off-by: aszlig <aszlig@nix.build> Reported-by: @zimbatm
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, libyamlcpp, systemd
|
|
, python3Packages, asciidoc, libxslt, docbook_xml_dtd_45, docbook_xsl
|
|
, libxml2, docbook5
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ip2unix";
|
|
version = "2.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nixcloud";
|
|
repo = "ip2unix";
|
|
rev = "v${version}";
|
|
sha256 = "1ci0k3zy3hjkg65ah5h75mfvrd578xf2z1449xmgjm3iz3d6kqs2";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson ninja pkgconfig asciidoc libxslt.bin docbook_xml_dtd_45 docbook_xsl
|
|
libxml2.bin docbook5 python3Packages.pytest python3Packages.pytest-timeout
|
|
systemd
|
|
];
|
|
|
|
buildInputs = [ libyamlcpp ];
|
|
|
|
doCheck = true;
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
found=0
|
|
for man in "$out/share/man/man1"/ip2unix.1*; do
|
|
test -s "$man" && found=1
|
|
done
|
|
if [ $found -ne 1 ]; then
|
|
echo "ERROR: Manual page hasn't been generated." >&2
|
|
exit 1
|
|
fi
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/nixcloud/ip2unix";
|
|
description = "Turn IP sockets into Unix domain sockets";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
maintainers = [ stdenv.lib.maintainers.aszlig ];
|
|
};
|
|
}
|