nixpkgs/pkgs/tools/networking/slirp4netns/default.nix
2020-04-03 20:37:59 +10:00

36 lines
819 B
Nix

{ stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, libcap
, libseccomp
, libslirp
}:
stdenv.mkDerivation rec {
pname = "slirp4netns";
version = "1.0.0";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
sha256 = "152wmccz47anvx5w88qcz8higw80l17jl7i24xfj5574adviqnv2";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ glib libcap libseccomp libslirp ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = "https://github.com/rootless-containers/slirp4netns";
description = "User-mode networking for unprivileged network namespaces";
license = licenses.gpl2;
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
platforms = platforms.linux;
};
}