nixpkgs/pkgs/tools/networking/slirp4netns/default.nix
Sascha Grunert 96ce7ccb93
slirp4netns: 1.1.6 -> 1.1.7
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-11-25 13:49:26 +01:00

39 lines
886 B
Nix

{ stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, libcap
, libseccomp
, libslirp
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "slirp4netns";
version = "1.1.7";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
sha256 = "1zvmsin7pgfwafj5qr8fcixg01xfq1xhjd93klyxhmacfxirhkgw";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ glib libcap libseccomp libslirp ];
enableParallelBuilding = true;
passthru.tests = { inherit (nixosTests) podman; };
meta = with stdenv.lib; {
homepage = "https://github.com/rootless-containers/slirp4netns";
description = "User-mode networking for unprivileged network namespaces";
license = licenses.gpl2;
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
platforms = platforms.linux;
};
}