mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
4e0e49400a
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
40 lines
885 B
Nix
40 lines
885 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, glib
|
|
, libcap
|
|
, libseccomp
|
|
, libslirp
|
|
, 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 ];
|
|
|
|
buildInputs = [ glib libcap libseccomp libslirp ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.tests = { inherit (nixosTests) podman; };
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|