mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
38 lines
741 B
Nix
38 lines
741 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, glib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libslirp";
|
|
version = "4.7.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "slirp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-avUbgXPPV3IhUwZyARxCvctbVlLqDKWmMhAjdVBA3jY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
postPatch = ''
|
|
echo ${version} > .tarball-version
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "General purpose TCP-IP emulator";
|
|
homepage = "https://gitlab.freedesktop.org/slirp/libslirp";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ orivej ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|