git.iko.soy/typeable/nixpkgs
on master help sign in
ip2unix: init at 1.0.0

This tool was initially built specifically for nixcloud to prevent a few annoying programs from binding to IP sockets. While initially only accepting a JSON file as input, the tool now has a proper command line interface and it's also generally usable to turn IP sockets of any program into Unix sockets. Another thing that might be even useful for NixOS modules is the possibility to bend programs into using systemd socket activation. Signed-off-by: aszlig <aszlig@nix.build>

commitb162b400073c5f526686c67306dbd324503160ea authoraszlig <aszlig@nix.build> dateMon 5 Nov 2018, 16:29 (8 years ago) parentcd05d5a
2 files changed+34
pkgs/tools/networking/ip2unix/default.nix+32 pkgs/top-level/all-packages.nix+2
pkgs/tools/networking/ip2unix/default.nixnew file+32
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -3417,6 +3417,8 @@ with pkgs;
34173417
34183418 ip2location = callPackage ../tools/networking/ip2location { };
34193419
3420+ ip2unix = callPackage ../tools/networking/ip2unix { };
3421+
34203422 ipad_charge = callPackage ../tools/misc/ipad_charge { };
34213423
34223424 iperf2 = callPackage ../tools/networking/iperf/2.nix { };