mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 12:47:55 +08:00
use stdenv from pkgsCross on windows 2
This commit is contained in:
@@ -37,6 +37,7 @@ let
|
||||
fetchFromGitHub = hostPkgs.fetchFromGitHub;
|
||||
pkg-config = hostPkgs.pkg-config;
|
||||
darwin = hostPkgs.darwin;
|
||||
windows = hostPkgs.pkgsCross.mingwW64.windows;
|
||||
installShellFiles = false;
|
||||
installShellCompletions = false;
|
||||
installManPages = false;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
, stdenv
|
||||
, pkg-config
|
||||
, darwin
|
||||
, windows
|
||||
, installShellFiles
|
||||
, installShellCompletions ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
|
||||
, installManPages ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
|
||||
@@ -40,6 +41,8 @@ rustPlatform.buildRustPackage rec {
|
||||
"--lib"
|
||||
];
|
||||
|
||||
depsBuildBuild = lib.optionals stdenv.hostPlatform.isWindows [ stdenv.cc windows.pthreads ];
|
||||
|
||||
nativeBuildInputs = [ ]
|
||||
++ lib.optional (builtins.elem "pgp-gpg" buildFeatures) pkg-config
|
||||
++ lib.optional (installManPages || installShellCompletions) installShellFiles;
|
||||
|
||||
Reference in New Issue
Block a user