-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathshell.nix
47 lines (42 loc) · 1.18 KB
/
shell.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
35
36
37
38
39
40
41
42
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable") {} }:
# nix-shell --fallback
# possibly solves invocation failures depending on your os/arch
let
showDartVersion = "dart --version";
showDartPath = "which dart";
in
pkgs.mkShellNoCC {
buildInputs = with pkgs;[
bundler
flutterPackages.v3_22
# flutterPackages.v3_24 - _23 is currently latest available in nix packages
git
gnumake
pkgs.git-credential-oauth
ruby_3_1
vscode
vscode-extensions.arrterian.nix-env-selector
vscode-extensions.dart-code.flutter
] ++ lib.optionals pkgs.stdenv.isDarwin [
cocoapods
];
shellHook = ''
# make sure `pub global` commands are reachable:
export PATH="$PATH":"$HOME/.pub-cache/bin"
# echo ""
# echo "Activating serverpod globally..."
# dart pub global activate serverpod_cli 2.0.2
# echo ""
# echo "Activating jaspr globally..."
# dart pub global activate jaspr_cli 0.13.3
echo ""
${showDartVersion}
${showDartPath}
echo ""
flutter doctor --verbose
echo ""
echo ""
code --install-extension codeium.codeium
code --install-extension [email protected]
'';
}