-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (56 loc) · 1.54 KB
/
flake.nix
File metadata and controls
57 lines (56 loc) · 1.54 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShell =
with pkgs;
mkShell {
buildInputs = [
actionlint
bashInteractive # full bash with readline/completion so prompts render correctly
crane
gh
git
gnumake
less
gnused # force Linux `sed` everywhere
go_1_24 # must match GO_VERSION in Dockerfile
gopls
golangci-lint
goreleaser
nixfmt-rfc-style
nodejs_24 # for Pulumi, must match values in package.json and npm-build/action.yml
openssh
protobuf # protoc
protoc-gen-connect-go
protoc-gen-go
protolint
pulumi
pulumiPackages.pulumi-nodejs
google-cloud-sdk
vim
];
shellHook = ''
unset DEVELOPER_DIR # to avoid suprious warning: unhandled Platform key FamilyDisplayName
export SHELL=${bashInteractive}/bin/bash
if [ -t 1 ]; then
export PS1="[defang:nix] \w$ "
fi
'';
};
packages.defang-cli = pkgs.callPackage ./pkgs/defang/cli.nix { };
packages.defang-bin = pkgs.callPackage ./pkgs/defang { };
}
);
}