summaryrefslogtreecommitdiff
path: root/kel_cpp_boilerplate/c++/blueprints/default_nix.hpp
blob: 6edb8e1b52da4fc41806548ee7a6b3ace6f33cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <string_view>

constexpr std::string_view default_nix_file_path = "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;
	};
}
)";