nixpkgs/pkgs/development/libraries/libslirp/default.nix

36 lines
744 B
Nix

{ stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, glib
}:
stdenv.mkDerivation rec {
pname = "libslirp";
version = "4.3.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "slirp";
repo = pname;
rev = "v${version}";
sha256 = "1hajbdwx20a48hp8kv6jqbjvnzjvcdqmbjfsymzy2xa80idqkfab";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ glib ];
postPatch = ''
echo ${version} > .tarball-version
'';
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;
};
}