summaryrefslogtreecommitdiff
path: root/default.nix
blob: fd26b34ddd164ed59d1a0dec590997fff4d59eee (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
{ pkgs ? import <nixpkgs> {}
, llvmPackages ? pkgs.llvmPackages_20
, stdenv ? llvmPackages.stdenv
, clang-tools ? llvmPackages.clang-tools
}:

let
	forstio = let
		forstioSrc = stdenv.mkDerivation {
			name = "forstio-src";

		 src = builtins.fetchurl {
			url = "https://git.keldu.de/forstio-forstio/snapshot/master.tar.gz";
			sha256 = "e91c18fef798dd7b3afbd1615c2e320b90d74aa2d7ef726801a76e3f7f77ae81";
		 };

		 phases = [ "unpackPhase" "installPhase" ];

		 unpackPhase = ''
			mkdir source
			tar -xzf "$src" -C source --strip-components=1
		 '';

		 installPhase = ''
			cp -r source $out
		 '';
	  };
	in
	(import "${forstioSrc}/default.nix" {
		inherit stdenv clang-tools;
	}).forstio;
in {
	kel_rar = pkgs.callPackage ./run_and_record/.nix/derivation.nix {
		inherit stdenv forstio;
	};
}