diff --git a/pkgs/development/libraries/libsegfault/default.nix b/pkgs/development/libraries/libsegfault/default.nix new file mode 100644 index 000000000000..e3a27c212847 --- /dev/null +++ b/pkgs/development/libraries/libsegfault/default.nix @@ -0,0 +1,43 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, boost +, libbacktrace +, unstableGitUpdater +}: + +stdenv.mkDerivation rec { + pname = "libsegfault"; + version = "unstable-2022-11-13"; + + src = fetchFromGitHub { + owner = "jonathanpoelen"; + repo = "libsegfault"; + rev = "8bca5964613695bf829c96f7a3a14dbd8304fe1f"; + sha256 = "vKtY6ZEkyK2K+BzJCSo30f9MpERpPlUnarFIlvJ1Giw="; + }; + + nativeBuildInputs = [ + meson + ninja + ]; + + buildInputs = [ + boost + libbacktrace + ]; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + meta = with lib; { + description = "Implementation of libSegFault.so with Boost.stracktrace"; + homepage = "https://github.com/jonathanpoelen/libsegfault"; + license = licenses.asl20; + maintainers = with maintainers; [ jtojnar ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0a630cad3ba0..4b8f49e83eca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21394,6 +21394,8 @@ with pkgs; libsecret = callPackage ../development/libraries/libsecret { }; + libsegfault = callPackage ../development/libraries/libsegfault { }; + libserdes = callPackage ../development/libraries/libserdes { }; libserialport = callPackage ../development/libraries/libserialport { };