-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
39 lines (33 loc) · 912 Bytes
/
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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
shellHook = ''
# Go command
go mod verify
go mod tidy
go mod download
# Welcome script
echo -e "\n$(tput bold)Welcome in the nix-shell for IpChecker$(tput sgr0)"
echo -e "\nList of custom command using 'just' a 'GNU make' like software :"
echo -e "================================================================"
just -l
echo -e "================================================================"
'';
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [
# Go
pkgs.go_1_17
pkgs.golangci-lint
pkgs.gopls
# Scripting
pkgs.zip
pkgs.unzip
pkgs.curl
pkgs.jq
pkgs.gh
pkgs.git-cliff
# Command runner
pkgs.just
# Formater
pkgs.nodePackages.prettier
];
}