2018-11-05 16:29:24 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, libyamlcpp, systemd
|
2018-11-12 15:40:41 +01:00
|
|
|
, python3Packages, asciidoc, libxslt, docbook_xml_dtd_45, docbook_xsl
|
|
|
|
, libxml2, docbook5
|
2018-11-05 16:29:24 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ip2unix-${version}";
|
2019-02-26 11:27:49 +01:00
|
|
|
version = "2.0.1";
|
2018-11-05 16:29:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nixcloud";
|
|
|
|
repo = "ip2unix";
|
|
|
|
rev = "v${version}";
|
2019-02-26 11:27:49 +01:00
|
|
|
sha256 = "1x2nfv15a1hg8vrw5vh8fqady12v9hfrb4p3cfg0ybx52y0xs48a";
|
2018-11-05 16:29:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-11-12 15:40:41 +01:00
|
|
|
meson ninja pkgconfig asciidoc libxslt.bin docbook_xml_dtd_45 docbook_xsl
|
|
|
|
libxml2.bin docbook5 python3Packages.pytest python3Packages.pytest-timeout
|
2018-12-26 19:36:49 +01:00
|
|
|
systemd
|
2018-11-05 16:29:24 +01:00
|
|
|
];
|
|
|
|
|
2018-12-26 19:36:49 +01:00
|
|
|
buildInputs = [ libyamlcpp ];
|
2018-11-05 16:29:24 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2018-11-12 15:40:41 +01: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 16:29:24 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|