-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
34 lines (33 loc) · 863 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
let
inherit (builtins) fetchTree fromJSON readFile;
flakeLock = fromJSON (readFile ./flake.lock);
in
{
pkgs ? (import (fetchTree flakeLock.nodes.nixpkgs.locked) {
overlays = [
(import "${fetchTree flakeLock.nodes.gomod2nix.locked}/overlay.nix")
];
}),
mkGoEnv ? pkgs.mkGoEnv,
gomod2nix ? pkgs.gomod2nix,
pkgsUnstable ? (import (fetchTree flakeLock.nodes.nixpkgs-unstable.locked) {}),
}: let
goEnv = mkGoEnv {pwd = ./.;};
in
pkgs.mkShell {
name = "speaker-shell";
packages = with pkgs; [
goEnv
gomod2nix
pkgsUnstable.delve
pkgsUnstable.go
go-tools
mpg123
libxkbcommon
xorg.libX11.dev
xorg.libXtst
pkgsUnstable.translate-shell
pkgsUnstable.python312Packages.gtts
];
postShellHook = '''';
}