summaryrefslogtreecommitdiffstats
path: root/nix-script-update-package-def.sh
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-10 19:10:54 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-10 19:10:54 +0200
commit420d2ed3b05a06141b6cbadd988ce55f16f943da (patch)
tree887bb48286f51080b0e27b8c8046f7327fdb3f43 /nix-script-update-package-def.sh
parentcdc3cd98cccfc56b6c9eeccaad4df18aed268058 (diff)
parent116c0997431081da274e98891e4cb7d4b057f6af (diff)
Merge pull request #47 from matthiasbeyer/add-more_help_text
Add more help text
Diffstat (limited to 'nix-script-update-package-def.sh')
-rwxr-xr-xnix-script-update-package-def.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/nix-script-update-package-def.sh b/nix-script-update-package-def.sh
index 85b64a8..d0d068d 100755
--- a/nix-script-update-package-def.sh
+++ b/nix-script-update-package-def.sh
@@ -20,6 +20,31 @@ usage() {
-g <path> Path of nixpkgs clone (defaults to ./)
-h Show this help and exit
+ Helper for developers of Nix packages.
+
+ With this command you can
+ - Download package update diffs
+ - Create package update commits on a new branch
+ - Test build the updated package
+ and everything in one step. All you need is the URL of the
+ patch.
+
+ The script asks before building the package, so you can abort if
+ the script fails to find the package name.
+
+ You really should base the update branch on the commit your
+ current system is based on. This way you don't need to rebuild
+ the whole world.
+
+ Example usage:
+
+ # Create in the current directory (which should be a clone
+ # of the nixpkgs repo) a new branch for updateing ffmpeg,
+ # download the patch and apply it (commit message gets generated
+ # for you) and then test build it.
+ # Verbosity is on.
+ nix-script -v update-package-def -b -u http://monitor.nixos.org/patch?p=ffmpeg-full&v=2.7.1&m=Matthias+Beyer
+
$(help_end)
EOS
}