2019-08-29 15:07:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, libcap, libseccomp }:
|
2019-02-14 06:23:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "slirp4netns";
|
2019-12-18 08:09:11 +00:00
|
|
|
version = "0.4.3";
|
2019-02-14 06:23:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rootless-containers";
|
|
|
|
repo = "slirp4netns";
|
|
|
|
rev = "v${version}";
|
2019-12-18 08:09:11 +00:00
|
|
|
sha256 = "0g7apfw33wkxxj7qwvlnnhv7qy13s1gkbmvns8612c0yfv9jrsvq";
|
2019-02-14 06:23:26 +00:00
|
|
|
};
|
|
|
|
|
2019-07-25 04:29:55 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
|
2019-08-29 15:07:41 +01:00
|
|
|
buildInputs = [ libcap libseccomp glib ];
|
2019-02-14 06:23:26 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/rootless-containers/slirp4netns;
|
|
|
|
description = "User-mode networking for unprivileged network namespaces";
|
|
|
|
license = licenses.gpl2;
|
2019-08-29 15:07:41 +01:00
|
|
|
maintainers = with maintainers; [ orivej saschagrunert ];
|
2019-02-14 06:23:26 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|