Loading pkgs/development/tools/continuous-integration/woodpecker/cli.nix +1 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,6 @@ buildGoModule { meta = common.meta // { description = "Command line client for the Woodpecker Continuous Integration server"; mainProgram = "woodpecker-cli"; mainProgram = "woodpecker"; }; } pkgs/development/tools/continuous-integration/woodpecker/common.nix +13 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,19 @@ in postInstall = '' cd $out/bin for f in *; do if [ "$f" = cli ]; then mv -- "$f" "woodpecker" # Issue a warning to the user if they call the deprecated executable cat >woodpecker-cli << EOF #/bin/sh echo 'WARNING: calling `woodpecker-cli` is deprecated, use `woodpecker` instead.' >&2 $out/bin/woodpecker "\$@" EOF chmod +x woodpecker-cli patchShebangs woodpecker-cli else mv -- "$f" "woodpecker-$f" fi done cd - ''; Loading Loading
pkgs/development/tools/continuous-integration/woodpecker/cli.nix +1 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,6 @@ buildGoModule { meta = common.meta // { description = "Command line client for the Woodpecker Continuous Integration server"; mainProgram = "woodpecker-cli"; mainProgram = "woodpecker"; }; }
pkgs/development/tools/continuous-integration/woodpecker/common.nix +13 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,19 @@ in postInstall = '' cd $out/bin for f in *; do if [ "$f" = cli ]; then mv -- "$f" "woodpecker" # Issue a warning to the user if they call the deprecated executable cat >woodpecker-cli << EOF #/bin/sh echo 'WARNING: calling `woodpecker-cli` is deprecated, use `woodpecker` instead.' >&2 $out/bin/woodpecker "\$@" EOF chmod +x woodpecker-cli patchShebangs woodpecker-cli else mv -- "$f" "woodpecker-$f" fi done cd - ''; Loading