-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
shell.nix
34 lines (31 loc) · 840 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
flakeLock = builtins.fromJSON (builtins.readFile ./flake.lock);
nixpkgsLock = flakeLock.nodes.nixpkgs.locked;
lockedNixpkgs =
import
(fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsLock.rev}.tar.gz";
sha256 = nixpkgsLock.narHash;
})
{};
in
{pkgs ? lockedNixpkgs}:
with pkgs;
mkShell {
name = "nixos-shell";
# Enable experimental features without having to specify the argument
NIX_CONFIG = "extra-experimental-features = nix-command flakes repl-flake";
buildInputs = [
alejandra
git
nix
nil
nodejs-18_x
nodePackages.pnpm
pre-commit
python310Packages.pre-commit-hooks
];
shellHook = ''
pre-commit install
'';
}