darwin.CoreSymbolication: refactor, unstable-2018-04-08 -> unstable-2018-06-17 (#262363)

* darwin.CoreSymbolication: refactor

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>

* darwin.CoreSymbolication: unstable-2018-04-08 -> unstable-2018-06-17

---------

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
h7x4 2023-10-23 00:18:16 +02:00 committed by GitHub
parent bd40664563
commit 0b6077fb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,23 @@
{ fetchFromGitHub, stdenv }:
{ lib, fetchFromGitHub, stdenv }:
# Reverse engineered CoreSymbolication to make dtrace buildable
stdenv.mkDerivation rec {
name = "CoreSymbolication";
stdenv.mkDerivation {
pname = "core-symbolication";
version = "unstable-2018-06-17";
src = fetchFromGitHub {
repo = name;
repo = "CoreSymbolication";
owner = "matthewbauer";
rev = "671fcb66c82eac1827f3f53dc4cc4e9b1b94da0a";
sha256 = "0qpw46gwgjxiwqqjxksb8yghp2q8dwad6hzaf4zl82xpvk9n5ahj";
rev = "24c87c23664b3ee05dc7a5a87d647ae476a680e4";
hash = "sha256-PzvLq94eNhP0+rLwGMKcMzxuD6MlrNI7iT/eV0obtSE=";
};
installPhase = ''
mkdir -p $out/include
cp -r CoreSymbolication $out/include
'';
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
meta = with lib; {
description = "Reverse engineered headers for Apple's CoreSymbolication framework";
homepage = "https://github.com/matthewbauer/CoreSymbolication";
license = licenses.mit;
platforms = platforms.darwin;
maintainers = with maintainers; [ matthewbauer ];
};
}