1 { lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, yaml-cpp, systemd
2 , python3Packages, asciidoc, libxslt, docbook_xml_dtd_45, docbook_xsl
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 hash = "sha256-+p5wQbX35LAjZ4vIE4AhI4M6gQ7gVviqf9jJDAr9xg8";
18 # https://github.com/nixcloud/ip2unix/pull/35
19 # fix out of range string_view access
21 url = "https://github.com/nixcloud/ip2unix/commit/050ddf76b4b925f27e255fbb820b0700407ceb2b.patch";
22 hash = "sha256-5vaLmZmwuiMGV4KnVhuDSnXG1a390aBU51TShwpaMLs=";
27 meson ninja pkg-config asciidoc libxslt.bin docbook_xml_dtd_45 docbook_xsl
28 libxml2.bin docbook5 python3Packages.pytest python3Packages.pytest-timeout
32 buildInputs = [ yaml-cpp ];
36 doInstallCheck = true;
37 installCheckPhase = ''
39 for man in "$out/share/man/man1"/ip2unix.1*; do
40 test -s "$man" && found=1
42 if [ $found -ne 1 ]; then
43 echo "ERROR: Manual page hasn't been generated." >&2
49 homepage = "https://github.com/nixcloud/ip2unix";
50 description = "Turn IP sockets into Unix domain sockets";
51 platforms = lib.platforms.linux;
52 license = lib.licenses.lgpl3;
53 maintainers = [ lib.maintainers.aszlig ];
54 mainProgram = "ip2unix";