lune: use new darwin sdk pattern, fix x86_64-darwin build (#375508)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user