From 52e6f971e848fcf581ea769a7925c29a13fe1e85 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Thu, 21 Dec 2023 16:50:32 -0500 Subject: [PATCH] Build with CMake. --- flake.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4d2b681..5a1cb1c 100644 --- a/flake.nix +++ b/flake.nix @@ -24,7 +24,15 @@ pname = "bootstrap"; src = ./.; 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" ''