3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/slirp4netns/default.nix

39 lines
886 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, libcap
, libseccomp
, libslirp
2020-05-19 01:41:01 +01:00
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "slirp4netns";
2020-07-16 03:12:19 +01:00
version = "1.1.4";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
2020-07-16 03:12:19 +01:00
sha256 = "13hlljkqss9abjpwaa5gcn6qnax0ws03zzh45c4rv1if7rwk6nbl";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2019-07-25 04:29:55 +01:00
buildInputs = [ glib libcap libseccomp libslirp ];
enableParallelBuilding = true;
2020-08-23 23:38:11 +01:00
passthru.tests = { inherit (nixosTests) podman; };
2020-05-19 01:41:01 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/rootless-containers/slirp4netns";
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;
platforms = platforms.linux;
};
}