Merge pull request #259443 from b-rodrigues/quarto-darwin-arm

quarto: added platforms.all
This commit is contained in:
Weijia Wang 2023-10-14 14:04:30 +02:00 committed by GitHub
commit 952869b980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@
, python3 , python3
, quarto , quarto
, extraPythonPackages ? ps: with ps; [] , extraPythonPackages ? ps: with ps; []
, sysctl
}: }:
stdenv.mkDerivation (final: { stdenv.mkDerivation (final: {
@ -60,11 +61,13 @@ stdenv.mkDerivation (final: {
mv bin/* $out/bin mv bin/* $out/bin
mv share/* $out/share mv share/* $out/share
runHook preInstall runHook postInstall
''; '';
passthru.tests = { passthru.tests = {
quarto-check = runCommand "quarto-check" {} '' quarto-check = runCommand "quarto-check" {
nativeBuildInputs = lib.optionals stdenv.isDarwin [ sysctl ];
} ''
export HOME="$(mktemp -d)" export HOME="$(mktemp -d)"
${quarto}/bin/quarto check ${quarto}/bin/quarto check
touch $out touch $out
@ -81,7 +84,7 @@ stdenv.mkDerivation (final: {
changelog = "https://github.com/quarto-dev/quarto-cli/releases/tag/v${version}"; changelog = "https://github.com/quarto-dev/quarto-cli/releases/tag/v${version}";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ minijackson mrtarantoga ]; maintainers = with maintainers; [ minijackson mrtarantoga ];
platforms = [ "x86_64-linux" ]; platforms = platforms.all;
sourceProvenance = with sourceTypes; [ binaryNativeCode binaryBytecode ]; sourceProvenance = with sourceTypes; [ binaryNativeCode binaryBytecode ];
}; };
}) })