2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, libyamlcpp, systemd
|
2018-11-12 14:40:41 +00:00
|
|
|
, python3Packages, asciidoc, libxslt, docbook_xml_dtd_45, docbook_xsl
|
|
|
|
, libxml2, docbook5
|
2018-11-05 15:29:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ip2unix";
|
2020-06-01 04:46:35 +01:00
|
|
|
version = "2.1.3";
|
2018-11-05 15:29:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nixcloud";
|
|
|
|
repo = "ip2unix";
|
|
|
|
rev = "v${version}";
|
2020-06-01 04:46:35 +01:00
|
|
|
sha256 = "19c449h60b2m1d8kawnhpi4y9y4ddm24jmlh8kilqmx8m5l2khr6";
|
2018-11-05 15:29:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:51:22 +00:00
|
|
|
meson ninja pkg-config asciidoc libxslt.bin docbook_xml_dtd_45 docbook_xsl
|
2018-11-12 14:40:41 +00:00
|
|
|
libxml2.bin docbook5 python3Packages.pytest python3Packages.pytest-timeout
|
2018-12-26 18:36:49 +00:00
|
|
|
systemd
|
2018-11-05 15:29:24 +00:00
|
|
|
];
|
|
|
|
|
2018-12-26 18:36:49 +00:00
|
|
|
buildInputs = [ libyamlcpp ];
|
2018-11-05 15:29:24 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2018-11-12 14:40:41 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-11-05 15:29:24 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nixcloud/ip2unix";
|
2018-11-05 15:29:24 +00:00
|
|
|
description = "Turn IP sockets into Unix domain sockets";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.aszlig ];
|
2018-11-05 15:29:24 +00:00
|
|
|
};
|
|
|
|
}
|