-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
47 lines (46 loc) · 811 Bytes
/
Copy pathshell.nix
File metadata and controls
47 lines (46 loc) · 811 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
37
38
39
40
41
42
43
44
45
46
47
{
pkgs ? import <nixpkgs> { },
}:
(pkgs.buildFHSEnv {
name = "lfs-env";
targetPkgs =
pkgs:
(with pkgs; [
bashInteractive
binutils
bison
coreutils
diffutils
findutils
gawk
gcc
glibc
gnugrep
gzip
m4
gnumake
patch
perl
python3
gnused
gnutar
xz
texinfo
file
gum
]);
profile = ''
cl() { clear; }
v() { nvim "$@"; }
export -f cl
export -f v
export LFS="/mnt/lfs"
export LC_ALL="C"
export LFS_TGT="x86_64-lfs-linux-gnu"
export LFS_DISK="/dev/nvme0n1p8"
export SRC_DIR="$LFS/sources/src_dir"
export CONFIG_SITE="$LFS/usr/share/config.site"
export MAKEFLAGS="-j$(nproc)"
export PATH="$LFS/tools/bin:$PATH"
'';
}).env