zola: aarch64-darwin support

This commit is contained in:
0x4A6F 2021-09-24 12:45:42 +02:00
parent a78925d568
commit 042fc8dbb2
No known key found for this signature in database
GPG key ID: 8DEDBA5BE07080E1

View file

@ -1,4 +1,15 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, cmake, pkg-config, openssl, oniguruma, CoreServices, installShellFiles }: { lib
, stdenv
, fetchFromGitHub
, rustPlatform
, cmake
, pkg-config
, openssl
, oniguruma
, CoreServices
, installShellFiles
, libsass
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "zola"; pname = "zola";
@ -13,9 +24,18 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1hg8j9a8c6c3ap24jd96y07rlp4f0s2mkyx5034nlnkm3lj4q42n"; cargoSha256 = "1hg8j9a8c6c3ap24jd96y07rlp4f0s2mkyx5034nlnkm3lj4q42n";
nativeBuildInputs = [ cmake pkg-config installShellFiles]; nativeBuildInputs = [
buildInputs = [ openssl oniguruma ] cmake
++ lib.optional stdenv.isDarwin CoreServices; pkg-config
installShellFiles
];
buildInputs = [
openssl
oniguruma
] ++ lib.optional stdenv.isDarwin [
CoreServices
libsass
];
RUSTONIG_SYSTEM_LIBONIG = true; RUSTONIG_SYSTEM_LIBONIG = true;