2020-03-19 07:46:14 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libslirp";
|
2020-04-24 01:13:31 +01:00
|
|
|
version = "4.3.0";
|
2020-03-19 07:46:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "slirp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-24 01:13:31 +01:00
|
|
|
sha256 = "1hajbdwx20a48hp8kv6jqbjvnzjvcdqmbjfsymzy2xa80idqkfab";
|
2020-03-19 07:46:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
2020-04-24 01:13:31 +01:00
|
|
|
postPatch = ''
|
|
|
|
echo ${version} > .tarball-version
|
|
|
|
'';
|
|
|
|
|
2020-03-19 07:46:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "General purpose TCP-IP emulator";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/slirp/libslirp";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|