nixpkgs/pkgs/top-level/template-composing-builder.nix
Michael Raskin 99f35b7435 Added Orbit space flight simulation. Unfortunately, it doesn't feature gravity.
svn path=/nixpkgs/trunk/; revision=10249
2008-01-22 17:56:53 +00:00

20 lines
527 B
Nix

args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs {
src = /* put a fetchurl here */
buildInputs = [];
configureFlags = [];
} 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 "Specify phases - defined here or in builderDefs") doForceShare doPropagate]);
meta = {
description = "
${abort "Write a description"}
";
};
}