about summary refs log tree commit diff
path: root/pkgs/top-level/template-composing+config.nix
blob: 7f7e55302ddac7e8704ebfee88f8099ac97738ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
args : with args; let localDefs = builderDefs (args // rec {
		src = /* put a fetchurl here */
		(abort "Specify source");
		useConfig = true;
		reqsList = [
			["true" ]
			["false"]
		];
		/* List consisiting of an even number of strings; "key" "value" */
		configFlags = [
		];
	}) args null; /* null is a terminator for sumArgs */
	in with localDefs;
stdenv.mkDerivation rec {
	name = "${(abort "Specify name")}"+version;
	builder = writeScript (name + "-builder")
		(textClosure localDefs [(abort "Check phases") doMakeInstall doForceShare doPropagate]);
	meta = {
		description = "${(abort "Specify description")}";
		inherit src;
	};
}