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

39 lines
878 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, libcap
, libseccomp
, libslirp
2020-05-19 02:41:01 +02:00
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "slirp4netns";
2020-06-09 04:11:48 +02:00
version = "1.1.1";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
2020-06-09 04:11:48 +02:00
sha256 = "0zwaa7lqf8vh4c9mx0ganyz15a6qkisyxyxggmshfsxw77k6djxy";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2019-07-25 05:29:55 +02:00
buildInputs = [ glib libcap libseccomp libslirp ];
enableParallelBuilding = true;
2020-05-19 02:41:01 +02:00
passthru.tests.podman = nixosTests.podman;
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 12:11:28 +02:00
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
platforms = platforms.linux;
};
}