mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
Merge pull request #259443 from b-rodrigues/quarto-darwin-arm
quarto: added platforms.all
This commit is contained in:
commit
952869b980
|
@ -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 ];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue