project-aster/vendored-nix/scottt-debugbreak/default.nix

31 lines
577 B
Nix

{ stdenv, fetchFromGitHub}:
stdenv.mkDerivation {
pname = "scottt-debugbreak";
version = "1.0";
src = fetchFromGitHub {
owner = "scottt";
repo = "debugbreak";
rev = "v1.0";
sha256 = "sha256-lFMBSbA4mwAgW/+T+G1pfrwYjcZFuoKr6t8JYMB65Yw=";
fetchSubmodules = false;
};
configurePhase = ''
runHook preConfigure
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/include
cp debugbreak.h $out/include
runHook postInstall
'';
}