zola: aarch64-darwin support
This commit is contained in:
parent
a78925d568
commit
042fc8dbb2
1 changed files with 24 additions and 4 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue