-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (33 loc) · 1.03 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "parachute-dev-shell";
# inputs.nixpkgs.url = "github:stephank/nixpkgs/feat/swift-darwin"; # Swift works here
# inputs.nixpkgs.url = "github:nixos/nixpkgs/22.11";
outputs =
{ self , nixpkgs , }:
let
pkgs = import nixpkgs { system = "aarch64-darwin"; };
xcodewrapper = pkgs.xcodeenv.composeXcodeWrapper {
version = "14.3.1";
xcodeBaseDir = "/Applications/Xcode.app";
};
in
{
devShells.aarch64-darwin.default = pkgs.mkShell {
name = "parachute-dev-shell";
#
nativeBuildInputs = with pkgs; [
google-cloud-sdk
go_1_19
protobuf3_20
nodejs_20
];
shellHook = ''
export LD=/usr/bin/clang # https://stackoverflow.com/questions/65146106/xcodebuild-using-ld-rather-than-clang-for-linking
export PATH=${xcodewrapper}/bin:$PATH
export GOPATH=$(pwd)/.gopath
export PATH=$PATH:$GOPATH/bin
export CLOUDSDK_ACTIVE_CONFIG_NAME=slowdown
'';
};
};
}