summaryrefslogtreecommitdiff
path: root/default.nix
blob: a26e539421e60975ff474f723b82b98b74fff191 (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
30
31
32
33
34
35
36
37
38
39
40
{ 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;
    inherit clang-tools;
	}).forstio;

	adaptive-cpp = pkgs.callPackage ./.nix/adaptive-cpp.nix {
			inherit stdenv;
			llvmPackages = pkgs.llvmPackages_19;
			lld = pkgs.lld_19;
	};

	pname = "kel-lbm";
	version = "0.0.2";
in rec {
	lbm = pkgs.callPackage ./.nix/derivation.nix {
		inherit forstio;
		inherit stdenv;
		inherit clang-tools;
	};

	examples = {
		cavity_2d_gpu = pkgs.callPackage ./examples/cavity_2d_gpu/.nix/derivation.nix {
			inherit pname version stdenv forstio adaptive-cpp;
			kel-lbm = lbm;
		};
	};

	debug = {
		inherit adaptive-cpp;
	};
}