summaryrefslogtreecommitdiff
path: root/kel_cpp_boilerplate/c++/blueprints/derivation_nix.hpp
blob: 9715769d0353cd3627e8a36a76ebec20b0f9073a (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
25
26
27
28
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 = ./..;
}
)";