rve/rve.nix

33 lines
639 B
Nix
Raw Normal View History

2024-12-06 19:44:09 +00:00
{ pkgs, stdenv }:
pkgs.gcc13Stdenv.mkDerivation rec {
pname = "rve";
version = "0.1.0";
dontPatch = true;
preBuild = ''
patchShebangs bin/*.sh
'';
installFlags = "PREFIX=${placeholder "out"} VERSION=${version}";
nativeBuildInputs = with pkgs; [ pkg-config cmake ninja ];
buildInputs = with pkgs; [ gdb linuxPackages.perf jq lcov ];
hardeningDisable = [ "all" ];
cmakeFlags = [
"-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE"
"-DCMAKE_BUILD_TYPE=Debug"
];
shellHook = ''
export CMAKE_BUILD_TYPE=Debug
ln -s build/compile_commands.json compile_commands.json
'';
doCheck = true;
src = ./.;
}