-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathflake.nix
More file actions
38 lines (32 loc) · 1.01 KB
/
flake.nix
File metadata and controls
38 lines (32 loc) · 1.01 KB
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
{
description = "Talkyard's dev env Nix flake. Install Nix and type 'nix develop'.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
};
outputs = { self , nixpkgs ,... }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells."${system}" = {
default = let
in pkgs.mkShell {
packages = with pkgs; [
ripgrep
# Webdriver.io supports only LTS versions. 22 is an LTS, 23 is not.
# 24 is, but not yet available in Nix.
nodejs_22
deno
(yarn.override { nodejs = nodejs_22; }) # what's Yarn's default Nodejs?
#yarn # or just this?
gnumake
];
shellHook = ''
export PS1="\[\e[00;32m\]\t \[\e[01;34m\]\w\[\033[0;33m\] \[\e[00;33m\]\$(__git_ps1 \"%s\" )\[\033[1;32m\] ty\[\033[0m\]\[\e[01;36m\]\$\[\e[00m\] "
echo
echo "Welcome to Talkyard's Nix flake shell dev env."
echo
'';
};
};
};
}