Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
85 lines (81 loc) · 2.33 KB
/
Copy pathflake.nix
File metadata and controls
85 lines (81 loc) · 2.33 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
58
59
60
61
62
63
64
65
66
67
68
69
70
8679
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
description = "Development environments on your infrastructure";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
drpc.url = "github:storj/drpc/v0.0.32";
};
outputs = { self, nixpkgs, flake-utils, drpc }:
flake-utils.lib.eachDefaultSystem (system:
let
# Workaround for: terraform has an unfree license (‘bsl11’), refusing to evaluate.
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
formatter = pkgs.nixpkgs-fmt;
# Check in https://search.nixos.org/packages to find new packages.
# Use `nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update`
# to update the lock file if packages are out-of-date.
# From https://nixos.wiki/wiki/Google_Cloud_SDK
gdk = pkgs.google-cloud-sdk.withExtraComponents ([pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin]);
devShellPackages = with pkgs; [
bat
cairo
curl
drpc.defaultPackage.${system}
gcc
gdk
getopt
git
gh
gnumake
gnused
go_1_21
go-migrate
golangci-lint
gopls
gotestsum
jq
kubectl
kubectx
kubernetes-helm
less
# Needed for many LD system libs!
libuuid
mockgen
nfpm
nodejs-18_x
nodejs-18_x.pkgs.pnpm
nodejs-18_x.pkgs.prettier
nodejs-18_x.pkgs.typescript
nodejs-18_x.pkgs.typescript-language-server
openssh
openssl
pango
pixman
pkg-config
postgresql_13
protobuf
protoc-gen-go
ripgrep
sapling
shellcheck
shfmt
sqlc
# strace is not available on OSX
(if pkgs.stdenv.hostPlatform.isDarwin then null else strace)
terraform
typos
vim
wget
yarn
yq-go
zip
zsh
zstd
];
in
{
defaultPackage = formatter; # or replace it with your desired default package.
devShell = pkgs.mkShell { buildInputs = devShellPackages; };
}
);
}