infra/nix/pkgs/slirp4netns.nix

50 lines
882 B
Nix
Raw Normal View History

2023-02-07 18:24:28 +01:00
{
stdenv,
fetchFromGitHub,
autoconf,
automake,
libtool,
gnumake,
gcc,
}:
stdenv.mkDerivation rec {
name = "slirp4netns-${version}";
version = "v0.2.1";
src = fetchFromGitHub {
owner = "rootless-containers";
repo = "slirp4netns";
rev = "${version}";
sha256 = "0kqncza4kgqkqiki569j7ym9pvp7879i6q2z0djvda9y0i6b80w4";
};
2024-11-15 10:17:56 +01:00
buildInputs = [
autoconf
automake
libtool
gnumake
gcc
];
2022-10-31 11:04:38 +01:00
configurePhase = ''
./autogen.sh
./configure --prefix=""
'';
buildPhase = ''
2022-10-31 11:04:38 +01:00
make
'';
installPhase = ''
make DESTDIR="$out" install
'';
meta = with stdenv.lib; {
description = "User-mode networking for unprivileged network namespaces";
2022-10-31 11:04:38 +01:00
homepage = "https://github.com/rootless-containers/slirp4netns";
license = null;
2024-11-15 10:17:56 +01:00
maintainers = [ maintainers.steveej ];
platforms = platforms.all;
};
}