nixos-dotfiles/modules/development/lldb-mi/default.nix

47 lines
934 B
Nix
Raw Normal View History

2023-02-01 03:19:31 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, lldb
, clang
, llvm
, pkgs
}:
let
stdenv = pkgs.clangStdenv;
# stdenv = pkgs.llvmPackages_5.stdenv;
in stdenv.mkDerivation rec {
version = "2388bd74133bc21eac59b2e2bf97f2a30770a315";
pname = "lldb-mi";
src = fetchFromGitHub {
owner = "lldb-tools";
repo = pname;
rev = version;
sha256 = "sha256-qBumOWNYZvoJNgqb1GMlxKZO0KKdq2cH/L7D8tpu56k=";
};
nativeBuildInputs = [ cmake pkgs.lldb_9 clang llvm ];
# stdenv = pkgs.clangStdenv;
patches = [ ./fix-long-env-pr87.patch ];
installPhase = ''
runHook preInstall
cmake --build . --target install --config Release
runHook postInstall
'';
meta = with lib; {
description = "LLDB's machine interface driver.";
homepage = "https://github.com/lldb-tools/lldb-mi";
2024-05-05 18:53:09 +00:00
license = licenses.asl20-llvm;
2023-02-01 03:19:31 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ seanomik ];
};
}