nixpkgs/pkgs/by-name/sl/slirp4netns/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
982 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";
2024-05-12 01:15:29 +00:00
version = "1.3.1";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "v${version}";
2024-05-12 01:15:29 +00:00
sha256 = "sha256-dXz5gNALrVjaFGUgEFp0k47c7aWDzwLMflphe6R6GaM=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
2019-07-25 03:29:55 +00:00
buildInputs = [
glib
libcap
libseccomp
libslirp
];
enableParallelBuilding = true;
2022-07-05 01:17:04 +00:00
strictDeps = 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";
2024-04-26 11:35:31 +00:00
license = licenses.gpl2Only;
2020-04-03 10:11:28 +00:00
maintainers = with maintainers; [ orivej ] ++ teams.podman.members;
platforms = platforms.linux;
2024-02-11 02:19:15 +00:00
mainProgram = "slirp4netns";
};
}