From e57d07f2ae8295e84a1fdb39f07dc3226b72e3ad Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 19 Mar 2020 17:46:14 +1000 Subject: [PATCH] libslirp: init at 4.2.0 (#82905) --- .../libraries/libslirp/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/libraries/libslirp/default.nix diff --git a/pkgs/development/libraries/libslirp/default.nix b/pkgs/development/libraries/libslirp/default.nix new file mode 100644 index 000000000000..27a4d6ceb64c --- /dev/null +++ b/pkgs/development/libraries/libslirp/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, fetchFromGitLab +, meson +, ninja +, pkg-config +, glib +}: + +stdenv.mkDerivation rec { + pname = "libslirp"; + version = "4.2.0"; + + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "slirp"; + repo = pname; + rev = "v${version}"; + sha256 = "1qk513fgfh4hwb1ajjmvg9m1bl97m3n731ymxqsh1c3fj468a2am"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + + buildInputs = [ glib ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 120a3718aded..1edff11927c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13111,6 +13111,8 @@ in libsigsegv = callPackage ../development/libraries/libsigsegv { }; + libslirp = callPackage ../development/libraries/libslirp { }; + libsndfile = callPackage ../development/libraries/libsndfile { inherit (darwin.apple_sdk.frameworks) Carbon AudioToolbox; };