nixpkgs/pkgs/tools/networking/slirp4netns/default.nix

40 lines
885 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, libcap
, libseccomp
, libslirp
2020-05-19 00:41:01 +00:00
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "slirp4netns";
version = "1.1.12";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
sha256 = "sha256-NhE5XxInNfGN6hTyZItc7+4HBjcyBLAFTpirEidcipk=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2019-07-25 03:29:55 +00:00
buildInputs = [ glib libcap libseccomp libslirp ];
enableParallelBuilding = true;
2020-08-23 22:38:11 +00:00
passthru.tests = { inherit (nixosTests) podman; };
2020-05-19 00:41:01 +00:00
meta = with lib; {
homepage = "https://github.com/rootless-containers/slirp4netns";
description = "User-mode networking for unprivileged network namespaces";
license = licenses.gpl2;
2020-04-03 10:11:28 +00:00
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
platforms = platforms.linux;
};
}