-
Notifications
You must be signed in to change notification settings - Fork 0
/
toshy-shell.nix
60 lines (59 loc) · 1.51 KB
/
toshy-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ pkgs ? import <nixpkgs> {
overlays = let
in [
(import ./overlays/toshy.nix)
];
}
}:
(pkgs.buildFHSUserEnv {
name = "pipzone";
targetPkgs = pkgs: (with pkgs; [
pkg-config
cairo.dev
xorg.libxcb.dev
xorg.libX11.dev
xorg.xorgproto
dbus.dev
glib.dev
systemd.dev
linuxHeaders
gobject-introspection
gobject-introspection.dev
libffi.dev
python311
python311Packages.pip
python311Packages.virtualenv
python311Packages.pycairo
python311Packages.wheel
python311Packages.setuptools
python311Packages.pillow
python311Packages.pygobject3
python311Packages.lockfile
python311Packages.dbus-python
python311Packages.systemd
python311Packages.tkinter
python311Packages.sv-ttk
python311Packages.watchdog
python311Packages.psutil
python311Packages.i3ipc
python311Packages.pywayland
python311Packages.pywlroots
python-xlib
python-xwaykeyz
python-hyprpy
gtk3
wrapGAppsHook
]);
profile = ''
set -e
# Tells pip to put packages into $PIP_PREFIX instead of the usual locations.
# See https://pip.pypa.io/en/stable/user_guide/#environment-variables.
export PIP_PREFIX=$(pwd)/_build/pip_packages
export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH"
export GI_TYPELIB_PATH="/nix/store/*-gtk+3-*/lib/girepository-1.0:$GI_TYPELIB_PATH"
export PATH="$PIP_PREFIX/bin:$PATH"
unset SOURCE_DATE_EPOCH
set +e
'';
runScript = "bash";
}).env