buck2: fix shell completion (#423592)

jade a698ac12 3002c9d6

Changed files
+23 -4
pkgs
by-name
bu
buck2
+23 -4
pkgs/by-name/bu/buck2/package.nix
···
dontConfigure = true;
dontStrip = true;
-
unpackPhase = "unzstd ${buck2-src} -o ./buck2 && unzstd ${rust-project-src} -o ./rust-project";
-
buildPhase = "chmod +x ./buck2 && chmod +x ./rust-project";
-
checkPhase = "./buck2 --version && ./rust-project --version";
installPhase = ''
mkdir -p $out/bin
install -D buck2 $out/bin/buck2
install -D rust-project $out/bin/rust-project
'';
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd buck2 \
···
mit
];
mainProgram = "buck2";
-
maintainers = with lib.maintainers; [ thoughtpolice ];
platforms = [
"x86_64-linux"
"aarch64-linux"
···
dontConfigure = true;
dontStrip = true;
+
unpackPhase = ''
+
runHook preUnpack
+
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 = ''
+
runHook preInstall
mkdir -p $out/bin
install -D buck2 $out/bin/buck2
install -D rust-project $out/bin/rust-project
+
runHook postInstall
'';
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd buck2 \
···
mit
];
mainProgram = "buck2";
+
maintainers = with lib.maintainers; [
+
thoughtpolice
+
lf-
+
_9999years
+
];
platforms = [
"x86_64-linux"
"aarch64-linux"