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

47 lines
934 B
Nix

{ 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";
license = licenses.asl20-llvm;
platforms = platforms.unix;
maintainers = with maintainers; [ seanomik ];
};
}