2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, yaml-cpp, systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3Packages, asciidoc, libxslt, docbook_xml_dtd_45, docbook_xsl
|
|
|
|
, libxml2, docbook5
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ip2unix";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nixcloud";
|
|
|
|
repo = "ip2unix";
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-+p5wQbX35LAjZ4vIE4AhI4M6gQ7gVviqf9jJDAr9xg8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
meson ninja pkg-config asciidoc libxslt.bin docbook_xml_dtd_45 docbook_xsl
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2.bin docbook5 python3Packages.pytest python3Packages.pytest-timeout
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = [ yaml-cpp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.aszlig ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|