33 lines
639 B
Nix
33 lines
639 B
Nix
|
{ 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 = ./.;
|
||
|
|
||
|
}
|