-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
49 lines (44 loc) · 1.12 KB
/
flake.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
40
41
42
43
44
45
46
47
48
49
{
description = "Flake for TyTTP";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem
(
system: let
stable = nixpkgs.legacyPackages.${system};
in {
devShells.default = stable.mkShell {
packages = with stable; [
chez
# go
go
golangci-lint
gomodifytags
gopls
gotools
go-tools
gotests
delve
impl
air
stdenv
gmp
];
shellHook = ''
export PACK_DIR=`pwd`/.pack
export PATH=$PACK_DIR/bin:$PATH
if [ ! -d $PACK_DIR ]; then
sh -c "$(${stable.curl}/bin/curl -fsSL https://raw.githubusercontent.com/stefan-hoeck/idris2-pack/main/install.bash)"
fi
[ ! -e $PACK_DIR/bin/idris2-lsp ] && pack --no-prompt install-app idris2-lsp
'';
};
}
);
}