-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faild to install on aarch64-darwin with nix #166
Comments
Hmm, I cannot solve this... diff --git a/flake.nix b/flake.nix
index dccdd6c..2b4600f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -17,7 +17,7 @@
openssl
dbus
sqlite
- ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
+ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]);
package = with pkgs; rustPlatform.buildRustPackage rec { this does not work |
I could compile it by |
I got an error today, so I'll contribute it |
So Actually This works! {
description = "hecto-study development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
{ flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem =
{
pkgs,
...
}:
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
rustfmt
clippy
rust-analyzer
cargo-watch
(leetcode-cli.overrideAttrs (prev: {
buildInputs =
prev.buildInputs
++ pkgs.lib.optionals pkgs.stdenv.isDarwin (
with pkgs.darwin.apple_sdk.frameworks;
[
SystemConfiguration
]
);
}))
];
};
};
};
} But this doesn't {
description = "hecto-study development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
{ flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem =
{
pkgs,
...
}:
{
devShells.default = pkgs.mkShell {
packages = (with pkgs; [
rustc
cargo
rustfmt
clippy
rust-analyzer
cargo-watch
leetcode-cli
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]));
};
};
};
} |
So, we don't need |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error
env info
System:
OS: macOS 15.0
CPU: (11) arm64 Apple M3 Pro
Memory: 361.95 MB / 36.00 GB
Shell: 3.7.1 - /opt/homebrew/bin/fish
Related Issue
I guess serokell/deploy-rs#132
I'll contiribute it later if I have time.
Thanks
The text was updated successfully, but these errors were encountered: