summaryrefslogtreecommitdiff
path: root/kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp')
-rw-r--r--kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp29
1 files changed, 29 insertions, 0 deletions
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 <string_view>
+
+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 = ./..;
+}
+)";