summaryrefslogtreecommitdiff
path: root/kel_cpp_boilerplate/c++/blueprints/default_nix.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-10-29 16:39:14 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-10-29 16:39:14 +0100
commitdfc45729d342f6f4d4d9ea39649c49b49fa178c6 (patch)
treefd66c76073b0eff3f184e1dcaa612c9e73eb7efd /kel_cpp_boilerplate/c++/blueprints/default_nix.hpp
downloadapps-dev_tools-dfc45729d342f6f4d4d9ea39649c49b49fa178c6.tar.gz
Initial commit
Diffstat (limited to 'kel_cpp_boilerplate/c++/blueprints/default_nix.hpp')
-rw-r--r--kel_cpp_boilerplate/c++/blueprints/default_nix.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/kel_cpp_boilerplate/c++/blueprints/default_nix.hpp b/kel_cpp_boilerplate/c++/blueprints/default_nix.hpp
new file mode 100644
index 0000000..312ad7f
--- /dev/null
+++ b/kel_cpp_boilerplate/c++/blueprints/default_nix.hpp
@@ -0,0 +1,24 @@
+#pragma once
+#include <string_view>
+
+constexpr std::string_view default_nix_file_name = "default.nix";
+
+constexpr std::string_view default_nix_file_content = R"(
+{ pkgs ? import <nixpkgs> {}
+, stdenv ? pkgs.llvmPackages_19.stdenv
+, clang-tools ? pkgs.clang-tools_19
+}:
+
+let
+ forstio = (import ((builtins.fetchGit {
+ url = "git@git.keldu.de:forstio/forstio";
+ ref = "dev";
+ }).outPath + "/default.nix"){
+ inherit stdenv;
+ }).forstio;
+in {
+ app = pkgs.callPackage ./app/.nix/derivation.nix {
+ inherit stdenv clang-tools forstio;
+ };
+}
+)";