Build with CMake.

pull/1/head
Joshua Potter 2023-12-21 16:50:32 -05:00
parent 5dd6035dcd
commit 52e6f971e8
1 changed files with 9 additions and 1 deletions

View File

@ -24,7 +24,15 @@
pname = "bootstrap"; pname = "bootstrap";
src = ./.; src = ./.;
version = "0.1.3"; version = "0.1.3";
dontInstall = true; nativeBuildInputs = with pkgs; [ cmake ];
buildPhase = ''
cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build .
'';
installPhase = ''
mkdir -p $out/bin
cp ./bootstrap $out/bin
'';
}; };
default = pkgs.writeShellScriptBin "bootstrap" '' default = pkgs.writeShellScriptBin "bootstrap" ''