blob: b9c6db399e7bd5140da0c30bcc6ce16d01176197 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, libcap
, libseccomp
, libslirp
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "slirp4netns";
version = "1.3.0";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
sha256 = "sha256-SjdRFcW8xjwJurOcNoHZTp3Ug17DmPrYZu8gcpQL2mE=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ glib libcap libseccomp libslirp ];
enableParallelBuilding = true;
strictDeps = 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.gpl2Only;
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
platforms = platforms.linux;
mainProgram = "slirp4netns";
};
}
|