2020-03-31 09:32:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libcap
|
|
|
|
, libseccomp
|
|
|
|
, libslirp
|
2020-05-19 01:41:01 +01:00
|
|
|
, nixosTests
|
2020-03-31 09:32:07 +01:00
|
|
|
}:
|
2019-02-14 06:23:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "slirp4netns";
|
2020-12-03 09:07:11 +00:00
|
|
|
version = "1.1.8";
|
2019-02-14 06:23:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rootless-containers";
|
|
|
|
repo = "slirp4netns";
|
|
|
|
rev = "v${version}";
|
2020-12-03 09:07:11 +00:00
|
|
|
sha256 = "06813k8a1gpakgykz5h75qpdlhrci9r39309n3qqh34ynbjil468";
|
2019-02-14 06:23:26 +00:00
|
|
|
};
|
|
|
|
|
2020-03-19 00:57:30 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2019-07-25 04:29:55 +01:00
|
|
|
|
2020-03-31 09:32:07 +01:00
|
|
|
buildInputs = [ glib libcap libseccomp libslirp ];
|
2019-02-14 06:23:26 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-08-23 23:38:11 +01:00
|
|
|
passthru.tests = { inherit (nixosTests) podman; };
|
2020-05-19 01:41:01 +01:00
|
|
|
|
2019-02-14 06:23:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-19 00:57:30 +00:00
|
|
|
homepage = "https://github.com/rootless-containers/slirp4netns";
|
2019-02-14 06:23:26 +00:00
|
|
|
description = "User-mode networking for unprivileged network namespaces";
|
|
|
|
license = licenses.gpl2;
|
2020-04-03 11:11:28 +01:00
|
|
|
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
|
2019-02-14 06:23:26 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|