From ad892591a583c30df6c99331f8c42b5424df4e56 Mon Sep 17 00:00:00 2001 From: Michael Livshin Date: Wed, 18 May 2022 12:32:16 +0300 Subject: [PATCH] swift-corelibs-libdispatch: init at swift-5.5-RELEASE Only currently packaged for Linux, which should be OK because the only user in Nixpkgs is Deadbeef (which is packaged only for Linux). --- .../swift-corelibs-libdispatch/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/libraries/swift-corelibs-libdispatch/default.nix diff --git a/pkgs/development/libraries/swift-corelibs-libdispatch/default.nix b/pkgs/development/libraries/swift-corelibs-libdispatch/default.nix new file mode 100644 index 000000000000..76cc0d3e30ef --- /dev/null +++ b/pkgs/development/libraries/swift-corelibs-libdispatch/default.nix @@ -0,0 +1,42 @@ +{ lib +, clangStdenv +, fetchFromGitHub +, cmake +, ninja +, libbsd +, libsystemtap +}: + +let + version = "5.5"; +in clangStdenv.mkDerivation { + pname = "swift-corelibs-libdispatch"; + inherit version; + + outputs = [ "out" "dev" "man" ]; + + src = fetchFromGitHub { + owner = "apple"; + repo = "swift-corelibs-libdispatch"; + rev = "swift-${version}-RELEASE"; + sha256 = "sha256-MbLgmS6qRSRT+2dGqbYTNb5MTM4Wz/grDXFk1kup+jk="; + }; + + nativeBuildInputs = [ + cmake + ninja + ]; + + buildInputs = [ + libbsd + libsystemtap + ]; + + meta = { + description = "Grand Central Dispatch"; + homepage = "https://github.com/apple/swift-corelibs-libdispatch"; + platforms = lib.platforms.linux; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.cmm ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 751395aa0d4c..5fc46b0005eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35356,4 +35356,6 @@ with pkgs; honeyvent = callPackage ../servers/tracing/honeycomb/honeyvent { }; mictray = callPackage ../tools/audio/mictray { }; + + swift-corelibs-libdispatch = callPackage ../development/libraries/swift-corelibs-libdispatch { }; }