···33 pytestCheckHook
34 ];
3536- disabledTests = lib.optionals stdenv.isDarwin [
00037 # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`).
38 "test_run_local_server_bind_addr"
39 ];
···33 pytestCheckHook
34 ];
3536+ disabledTests = [
37+ # Flaky test. See https://github.com/NixOS/nixpkgs/issues/288424#issuecomment-1941609973.
38+ "test_run_local_server_occupied_port"
39+ ] ++ lib.optionals stdenv.isDarwin [
40 # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`).
41 "test_run_local_server_bind_addr"
42 ];
···17 postInstall = ''
18 cd $out/bin
19 for f in *; do
20- mv -- "$f" "woodpecker-$f"
00000000000021 done
22 cd -
23 '';
···17 postInstall = ''
18 cd $out/bin
19 for f in *; do
20+ if [ "$f" = cli ]; then
21+ mv -- "$f" "woodpecker"
22+ # Issue a warning to the user if they call the deprecated executable
23+ cat >woodpecker-cli << EOF
24+ #/bin/sh
25+ echo 'WARNING: calling `woodpecker-cli` is deprecated, use `woodpecker` instead.' >&2
26+ $out/bin/woodpecker "\$@"
27+ EOF
28+ chmod +x woodpecker-cli
29+ patchShebangs woodpecker-cli
30+ else
31+ mv -- "$f" "woodpecker-$f"
32+ fi
33 done
34 cd -
35 '';