blob: 5f7dc1b09a82f7e8eae77d8a3c3ff0663046f61a (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{ pkgs ? import <nixpkgs> {}
, stdenv ? pkgs.llvmPackages_19.stdenv
, clang-tools ? pkgs.clang-tools_19
}:
let
adaptive-cpp = pkgs.callPackage .nix/adaptive-cpp.nix {
inherit stdenv;
llvmPackages = pkgs.llvmPackages_19;
lld = pkgs.lld_19;
};
forstio = (import ((builtins.fetchTarball {
url = "https://git.keldu.de/forstio-forstio/snapshot/dev.tar.gz";
sha256 = "sha256:1mbak3ksppkij0325p6gz8mibbss0gfj4w85fs4f1jkz8wpdbkgq";
}) + "/default.nix"){
inherit stdenv;
inherit clang-tools;
inherit adaptive-cpp;
}).forstio;
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;
};
cavity_2d = pkgs.callPackage ./examples/cavity_2d/.nix/derivation.nix {
inherit pname version stdenv forstio;
kel-lbm = lbm;
};
poiseulle_particles_channel_2d = pkgs.callPackage ./examples/poiseulle_particles_channel_2d/.nix/derivation.nix {
inherit pname version stdenv forstio;
kel-lbm = lbm;
};
meta_2d = pkgs.callPackage ./examples/meta_2d/.nix/derivation.nix {
inherit pname version stdenv forstio;
kel-lbm = lbm;
};
planetary_3d = pkgs.callPackage ./examples/planetary_3d/.nix/derivation.nix {
inherit pname version stdenv forstio adaptive-cpp;
kel-lbm = lbm;
};
poiseulle_2d = pkgs.callPackage ./examples/poiseulle_3d/.nix/derivation.nix {
inherit pname version stdenv forstio;
kel-lbm = lbm;
};
poiseulle_3d = pkgs.callPackage ./examples/poiseulle_3d/.nix/derivation.nix {
inherit pname version stdenv forstio adaptive-cpp;
kel-lbm = lbm;
};
};
debug = {
inherit adaptive-cpp;
};
}
|