mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
7001d91ba7
svn path=/nixpkgs/trunk/; revision=10938
21 lines
553 B
Nix
21 lines
553 B
Nix
args : with args; with builderDefs {src="";} null;
|
|
let localDefs = builderDefs (rec {
|
|
src = /* put a fetchurl here */
|
|
|
|
buildInputs = [];
|
|
configureFlags = [];
|
|
}) 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 "Specify phases - defined here or in builderDefs") doForceShare doPropagate]);
|
|
meta = {
|
|
description = "
|
|
${abort "Write a description"}
|
|
";
|
|
inherit src;
|
|
};
|
|
}
|