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; [
|
pkgs,
|
||||||
# devenv
|
lib,
|
||||||
unstable.devenv
|
...
|
||||||
# Javascript
|
}: {
|
||||||
nodejs
|
home.packages = with pkgs;
|
||||||
nodePackages.yarn
|
[
|
||||||
unstable.nodePackages.pnpm
|
# devenv
|
||||||
deno
|
unstable.devenv
|
||||||
unstable.bun
|
# Javascript
|
||||||
# PHP
|
nodejs
|
||||||
php
|
nodePackages.yarn
|
||||||
# Python
|
unstable.nodePackages.pnpm
|
||||||
python3
|
deno
|
||||||
# Nix
|
unstable.bun
|
||||||
nil
|
# PHP
|
||||||
alejandra
|
php
|
||||||
# Rust
|
# Python
|
||||||
(rust-bin.stable.latest.default.override {
|
python3
|
||||||
extensions = ["rust-src" "llvm-tools-preview"];
|
# Nix
|
||||||
})
|
nil
|
||||||
pkg-config
|
alejandra
|
||||||
openssl
|
# 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 = ''
|
programs.zsh.initExtra = ''
|
||||||
export PATH=~/.npm-packages/bin:$PATH
|
export PATH=~/.npm-packages/bin:$PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user