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

38 lines
741 B
Nix
Raw Normal View History

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