diff options
Diffstat (limited to 'kel_cpp_boilerplate/c++/blueprints/default_nix.hpp')
| -rw-r--r-- | kel_cpp_boilerplate/c++/blueprints/default_nix.hpp | 24 |
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; + }; +} +)"; |
