lune: use new darwin sdk pattern, fix x86_64-darwin build (#375508)

This commit is contained in:
Nick Cao
2025-01-22 15:56:48 -05:00
committed by GitHub
-13
View File
@@ -1,16 +1,10 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
darwin,
cmake,
}:
let
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
in
rustPlatform.buildRustPackage rec {
pname = "lune";
version = "0.8.9";
@@ -30,11 +24,6 @@ rustPlatform.buildRustPackage rec {
cmake # required for libz-ng-sys
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Security
SystemConfiguration
];
# error: linker `aarch64-linux-gnu-gcc` not found
postPatch = ''
rm .cargo/config.toml
@@ -64,7 +53,5 @@ rustPlatform.buildRustPackage rec {
changelog = "https://github.com/lune-org/lune/blob/${src.rev}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ lammermann ];
# note: Undefined symbols for architecture x86_64
broken = stdenv.hostPlatform.isDarwin;
};
}