buck2: fix shell completion
This was caused by not running the hooks because of custom phase definitions.
This commit is contained in:
parent
7e262b2fab
commit
3392aed1ad
@ -108,13 +108,28 @@ stdenv.mkDerivation {
|
|||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
unpackPhase = "unzstd ${buck2-src} -o ./buck2 && unzstd ${rust-project-src} -o ./rust-project";
|
unpackPhase = ''
|
||||||
buildPhase = "chmod +x ./buck2 && chmod +x ./rust-project";
|
runHook preUnpack
|
||||||
checkPhase = "./buck2 --version && ./rust-project --version";
|
unzstd ${buck2-src} -o ./buck2
|
||||||
|
unzstd ${rust-project-src} -o ./rust-project
|
||||||
|
runHook postUnpack
|
||||||
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
chmod +x ./buck2 && chmod +x ./rust-project
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
./buck2 --version && ./rust-project --version
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -D buck2 $out/bin/buck2
|
install -D buck2 $out/bin/buck2
|
||||||
install -D rust-project $out/bin/rust-project
|
install -D rust-project $out/bin/rust-project
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd buck2 \
|
installShellCompletion --cmd buck2 \
|
||||||
@ -149,7 +164,11 @@ stdenv.mkDerivation {
|
|||||||
mit
|
mit
|
||||||
];
|
];
|
||||||
mainProgram = "buck2";
|
mainProgram = "buck2";
|
||||||
maintainers = with lib.maintainers; [ thoughtpolice ];
|
maintainers = with lib.maintainers; [
|
||||||
|
thoughtpolice
|
||||||
|
lf-
|
||||||
|
_9999years
|
||||||
|
];
|
||||||
platforms = [
|
platforms = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user