summaryrefslogtreecommitdiff
path: root/default.nix
blob: 82a47a9beca9319de198372c5fe849dfa2380700 (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
{ pkgs ? import <nixpkgs> {}
, stdenv ? pkgs.llvmPackages_16.stdenv
, clang-tools ? pkgs.clang-tools_16
, forstio ? (import ((builtins.fetchGit {
    url = "git@git.keldu.de:forstio/forstio";
    ref = "dev";
  }).outPath + "/default.nix"){
    inherit stdenv;
    inherit clang-tools;
  }).forstio
}:

let
	version = "0.0.0";
in
rec {
	forstio-examples = {
		tools = pkgs.callPackage ./tools/.nix/derivation.nix {
			inherit stdenv;
			inherit clang-tools;
			inherit version;
			inherit forstio;
		};

		json = pkgs.callPackage ./json/.nix/derivation.nix {
			inherit stdenv;
			inherit clang-tools;
			inherit version;
			inherit forstio;
		};
	};

	all = pkgs.symlinkJoin {
		name = "forstio_examples-${version}";
		paths = [
			forstio-examples.tools
		];
 	};
}