Skip to content

Instantly share code, notes, and snippets.

@inclyc
Created October 19, 2023 11:13
Show Gist options
  • Save inclyc/1252008fc8555f5427333e5b6da89e62 to your computer and use it in GitHub Desktop.
Save inclyc/1252008fc8555f5427333e5b6da89e62 to your computer and use it in GitHub Desktop.
lldb-mi nix package
{ lib
, stdenv
, fetchFromGitHub
, cmake
, llvmPackages
}:
stdenv.mkDerivation rec {
pname = "lldb-mi";
version = "0.0.1";
src = fetchFromGitHub {
owner = "lldb-tools";
repo = "lldb-mi";
rev = version;
hash = "sha256-SoNbQrueK9MpDymUANcLF0bt2Tjj69ZOBgopqzVgGcc=";
};
nativeBuildInputs = [
cmake
];
buildInputs = let inherit (llvmPackages) llvm lldb clang; in [
llvm
lldb
clang
];
meta = with lib; {
description = "LLDB's machine interface driver";
homepage = "https://github.com/lldb-tools/lldb-mi";
license = licenses.asl20;
maintainers = with maintainers; [ inclyc ];
mainProgram = "lldb-mi";
platforms = platforms.all;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment