summary refs log tree commit diff
path: root/pkgs/lib/strings-with-deps.nix
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2008-01-17 11:14:00 +0000
committerMarc Weber <marco-oweber@gmx.de>2008-01-17 11:14:00 +0000
commit735d2a4f665f579aaf64124a1b515756f1f8d083 (patch)
tree3e22d214764af8765fb1d0f1b1ad7f86d886ec33 /pkgs/lib/strings-with-deps.nix
parente054e91e8be7bcbce53ebaee78fd8747c69aec1e (diff)
downloadnixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.tar
nixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.tar.gz
nixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.tar.bz2
nixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.tar.lz
nixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.tar.xz
nixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.tar.zst
nixpkgs-735d2a4f665f579aaf64124a1b515756f1f8d083.zip
added small comment on how to use textClosure, also added reference to builder-defs.nix
svn path=/nixpkgs/trunk/; revision=10186
Diffstat (limited to 'pkgs/lib/strings-with-deps.nix')
-rw-r--r--pkgs/lib/strings-with-deps.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/lib/strings-with-deps.nix b/pkgs/lib/strings-with-deps.nix
index 78cded99ef7..c70c1f2728d 100644
--- a/pkgs/lib/strings-with-deps.nix
+++ b/pkgs/lib/strings-with-deps.nix
@@ -1,3 +1,18 @@
+/*
+Usage:
+
+  You define you custom builder script by adding all build steps to a list.
+  for example:
+	builder = writeScript "fsg-4.4-builder"
+		(textClosure [doUnpack addInputs preBuild doMake installPhase doForceShare]);
+
+  a step is defined by noDepEntry, FullDepEntry or PackEntry.
+  To ensure that prerequisite are met those are added before the task itself by
+  textClosureDupList. Duplicated items are removed again.
+
+  See trace/nixpkgs/trunk/pkgs/top-level/builder-defs.nix for some predefined build steps
+
+*/
 args: 
 	with args;
 	with lib;