@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, libyamlcpp, systemd
2+, asciidoctor, python3Packages
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "ip2unix-${version}";
7+ version = "1.0.0";
8+
9+ src = fetchFromGitHub {
10+ owner = "nixcloud";
11+ repo = "ip2unix";
12+ rev = "v${version}";
13+ sha256 = "1s6gyrrzgifr6gagcw4vx9xznxvdl14y14r0d1xc72j69b00zc4q";
14+ };
15+
16+ nativeBuildInputs = [
17+ meson ninja pkgconfig asciidoctor
18+ python3Packages.pytest python3Packages.pytest-timeout
19+ ];
20+
21+ buildInputs = [ libyamlcpp systemd ];
22+
23+ doCheck = true;
24+
25+ meta = {
26+ homepage = https://github.com/nixcloud/ip2unix;
27+ description = "Turn IP sockets into Unix domain sockets";
28+ platforms = stdenv.lib.platforms.linux;
29+ license = stdenv.lib.licenses.lgpl3;
30+ maintainers = [ stdenv.lib.maintainers.aszlig ];
31+ };
32+}