fix(dev): add necessary deps for rust on darwin
This commit is contained in:
parent
c887677560
commit
faa11b525a
@ -1,27 +1,40 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
# devenv
|
||||
unstable.devenv
|
||||
# Javascript
|
||||
nodejs
|
||||
nodePackages.yarn
|
||||
unstable.nodePackages.pnpm
|
||||
deno
|
||||
unstable.bun
|
||||
# PHP
|
||||
php
|
||||
# Python
|
||||
python3
|
||||
# Nix
|
||||
nil
|
||||
alejandra
|
||||
# Rust
|
||||
(rust-bin.stable.latest.default.override {
|
||||
extensions = ["rust-src" "llvm-tools-preview"];
|
||||
})
|
||||
pkg-config
|
||||
openssl
|
||||
];
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
# devenv
|
||||
unstable.devenv
|
||||
# Javascript
|
||||
nodejs
|
||||
nodePackages.yarn
|
||||
unstable.nodePackages.pnpm
|
||||
deno
|
||||
unstable.bun
|
||||
# PHP
|
||||
php
|
||||
# Python
|
||||
python3
|
||||
# Nix
|
||||
nil
|
||||
alejandra
|
||||
# Rust
|
||||
(rust-bin.stable.latest.default.override {
|
||||
extensions = ["rust-src" "llvm-tools-preview"];
|
||||
})
|
||||
pkg-config
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
SystemConfiguration
|
||||
]);
|
||||
|
||||
# Required for the `openssl-sys` crate to build properly
|
||||
home.sessionVariables.PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
||||
|
||||
programs.zsh.initExtra = ''
|
||||
export PATH=~/.npm-packages/bin:$PATH
|
||||
|
Loading…
x
Reference in New Issue
Block a user