-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (32 loc) · 881 Bytes
/
flake.nix
File metadata and controls
37 lines (32 loc) · 881 Bytes
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
{
description = "spotify-viewer development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hl.url = "github:pamburus/hl";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, hl, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
goVersion = "1_23"; # Change this to update the whole stack
pkgs = nixpkgs.legacyPackages.${system};
in {
overlays.default = final: prev: {
go = final."go_${goVersion}";
};
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
go
gotools
golangci-lint
go-migrate
sqlc
nodejs_22
hl.packages.${system}.default
];
};
};
}
);
}