summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-01-08 07:53:42 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-01-08 07:55:58 +0100
commit62fdb04f4155a073c251676faf87a12112d98e20 (patch)
tree0c59a17b5d8e92ea342bc979a15cd5d5aaecd39c
parent7db39f9f1282d038bdaab259d3fa62d3a3ece00f (diff)
Add note that the arg -p is deprecated
-rwxr-xr-xnix-script-switch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/nix-script-switch.sh b/nix-script-switch.sh
index 3c97d76..69a04fb 100755
--- a/nix-script-switch.sh
+++ b/nix-script-switch.sh
@@ -30,6 +30,10 @@ usage() {
-p [<pkgs>] Generate the switch tag in the nixpkgs at <pkgs>
as well. (default: '$RC_NIXPKGS')
+ (Warning: deprecated
+ This flag is deprecated as tagging with the channel
+ commit hash is now default
+ )
-r [<remote>] Update the <remote> in the <pkgs> before tagging.
Multiple possible, seperate with spaces.
@@ -239,6 +243,10 @@ if [[ $TAG_NIXPKGS -eq 1 ]]
then
if [[ ! -z "$NIXPKGS" ]]
then
+ stderr "This option is deprecated."
+ stderr "Therefor it might be removed in the next version."
+ stderr "Please complain in the official nixos-scripts repository."
+
stdout "Trying to generate tag in $NIXPKGS"
[[ ! -d "$NIXPKGS" ]] && \
stderr "'$NIXPKGS' is not a directory, so can't be a nixpkgs clone" && \