mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
woodpecker: use upstream naming for cli executable
The intended executable name is supposed to be `woodpecker`, not `woodpecker-cli`, as pointed out in [1]. [1]: https://github.com/woodpecker-ci/woodpecker/issues/2112
This commit is contained in:
parent
61276c8099
commit
3d7e60beb0
@ -12,6 +12,6 @@ buildGoModule {
|
||||
|
||||
meta = common.meta // {
|
||||
description = "Command line client for the Woodpecker Continuous Integration server";
|
||||
mainProgram = "woodpecker-cli";
|
||||
mainProgram = "woodpecker";
|
||||
};
|
||||
}
|
||||
|
@ -17,7 +17,11 @@ in
|
||||
postInstall = ''
|
||||
cd $out/bin
|
||||
for f in *; do
|
||||
if [ "$f" = cli ]; then
|
||||
mv -- "$f" "woodpecker"
|
||||
else
|
||||
mv -- "$f" "woodpecker-$f"
|
||||
fi
|
||||
done
|
||||
cd -
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user