kanata: fix darwin build (#384944)
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
darwin,
|
||||
apple-sdk_13,
|
||||
darwinMinVersionHook,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
jq,
|
||||
moreutils,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
writeShellScriptBin,
|
||||
withCmd ? false,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "kanata";
|
||||
version = "1.8.0";
|
||||
@@ -25,7 +24,16 @@ rustPlatform.buildRustPackage rec {
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-/r4u7pM7asCvG3LkbuP1Y63WVls1uZtV/L3cSOzUXr4=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
apple-sdk_13
|
||||
(darwinMinVersionHook "13.0")
|
||||
];
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
(writeShellScriptBin "sw_vers" ''
|
||||
echo 'ProductVersion: 13.0'
|
||||
'')
|
||||
];
|
||||
|
||||
buildFeatures = lib.optional withCmd "cmd";
|
||||
|
||||
@@ -52,6 +60,5 @@ rustPlatform.buildRustPackage rec {
|
||||
];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "kanata";
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user