Compare commits
No commits in common. "c1298f0b808ae21a7f55e6b4774809696300ef00" and "c9e6851808d7ca3ac40ad473d8fa033bcfcc353e" have entirely different histories.
c1298f0b80
...
c9e6851808
|
@ -25,6 +25,10 @@
|
||||||
src = ./.;
|
src = ./.;
|
||||||
version = "0.1.3";
|
version = "0.1.3";
|
||||||
nativeBuildInputs = with pkgs; [ cmake ];
|
nativeBuildInputs = with pkgs; [ cmake ];
|
||||||
|
buildPhase = ''
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||||
|
cmake --build .
|
||||||
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ./bootstrap $out/bin
|
cp ./bootstrap $out/bin
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.15)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
project("<NAME>" VERSION 0.1.0)
|
project("<NAME>" VERSION 0.1.0)
|
||||||
|
|
||||||
# The default CMAKE_BUILD_TYPE is undefined, i.e. toolchain specific. Enforcing
|
|
||||||
# a default makes builds work more consistently.
|
|
||||||
if (NOT CMAKE_BUILD_TYPE)
|
|
||||||
message("CMAKE_BUILD_TYPE was not set. Defaulting to Debug")
|
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# The primary executable.
|
# The primary executable.
|
||||||
add_executable("<NAME>" main.c)
|
add_executable("<NAME>" main.c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue