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