From dfc45729d342f6f4d4d9ea39649c49b49fa178c6 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 29 Oct 2025 16:39:14 +0100 Subject: Initial commit --- .../c++/blueprints/derivation_nix.hpp | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp (limited to 'kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp') diff --git a/kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp b/kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp new file mode 100644 index 0000000..9715769 --- /dev/null +++ b/kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp @@ -0,0 +1,29 @@ +#pragma once +#include + +constexpr std::string_view derivation_nix_dir_name = "app/.nix"; +constexpr std::string_view derivation_nix_file_name = "derivation.nix"; + +constexpr std::string_view derivation_nix_file_content = R"( +{ stdenv +, scons +, clang-tools +, forstio +}: + +stdenv.mkDerivation { + // pname = ""; // Actually add a name + version = "0.0.0"; + + nativeBuildInputs = [ + clang-tools + scons + ]; + + buildInputs = [ + forstio.core + ]; + + src = ./..; +} +)"; -- cgit v1.2.3