mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-24 12:00:22 +00:00
bump flake deps, use apple sdk 11.0 on x86_64-darwin
This commit is contained in:
parent
7c17f801eb
commit
52aa6336a0
2 changed files with 19 additions and 41 deletions
|
@ -79,11 +79,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1725001927,
|
||||
"narHash": "sha256-eV+63gK0Mp7ygCR0Oy4yIYSNcum2VQwnZamHxYTNi+M=",
|
||||
"lastModified": 1729973466,
|
||||
"narHash": "sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "6e99f2a27d600612004fbd2c3282d614bfee6421",
|
||||
"rev": "cd3e8833d70618c4eea8df06f95b364b016d4950",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
54
flake.nix
54
flake.nix
|
@ -72,46 +72,24 @@
|
|||
};
|
||||
};
|
||||
|
||||
x86_64-darwin = {
|
||||
x86_64-darwin = {
|
||||
rustTarget = "x86_64-apple-darwin";
|
||||
mkPackage = { pkgs, ... }: package:
|
||||
let inherit (pkgs.darwin.apple_sdk.frameworks) AppKit Cocoa Security;
|
||||
in package // {
|
||||
buildInputs = [ AppKit Cocoa Security ];
|
||||
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit -F${Security}/Library/Frameworks -framework Security";
|
||||
};
|
||||
};
|
||||
|
||||
# FIXME: https://github.com/NixOS/nixpkgs/issues/273442
|
||||
aarch64-darwin = {
|
||||
rustTarget = "aarch64-apple-darwin";
|
||||
runner = { pkgs, himalaya }: "${pkgs.qemu}/bin/qemu-aarch64 ${himalaya}";
|
||||
mkPackage = { system, pkgs }: package:
|
||||
let
|
||||
inherit ((mkPkgsCross system "aarch64-darwin").pkgsStatic) stdenv darwin;
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
|
||||
cc = "${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc";
|
||||
in
|
||||
package // {
|
||||
buildInputs = [ Cocoa ];
|
||||
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit";
|
||||
TARGET_CC = cc;
|
||||
CARGO_BUILD_RUSTFLAGS = package.CARGO_BUILD_RUSTFLAGS ++ [ "-Clinker=${cc}" ];
|
||||
};
|
||||
};
|
||||
x86_64-darwin.x86_64-darwin = {
|
||||
rustTarget = "x86_64-apple-darwin";
|
||||
mkPackage = { pkgs, ... }: package:
|
||||
let inherit (pkgs.darwin.apple_sdk_11_0.frameworks) AppKit Cocoa;
|
||||
in package // {
|
||||
buildInputs = [ Cocoa ];
|
||||
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit";
|
||||
};
|
||||
};
|
||||
|
||||
aarch64-darwin = {
|
||||
aarch64-darwin = {
|
||||
rustTarget = "aarch64-apple-darwin";
|
||||
mkPackage = { pkgs, ... }: package:
|
||||
let inherit (pkgs.darwin.apple_sdk.frameworks) AppKit Cocoa;
|
||||
in package // {
|
||||
buildInputs = [ Cocoa ];
|
||||
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit";
|
||||
};
|
||||
};
|
||||
aarch64-darwin.aarch64-darwin = {
|
||||
rustTarget = "aarch64-apple-darwin";
|
||||
mkPackage = { pkgs, ... }: package:
|
||||
let inherit (pkgs.darwin.apple_sdk.frameworks) AppKit Cocoa;
|
||||
in package // {
|
||||
buildInputs = [ Cocoa ];
|
||||
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue