-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathshell.nix
More file actions
66 lines (53 loc) · 1.91 KB
/
shell.nix
File metadata and controls
66 lines (53 loc) · 1.91 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ pkgs ? import <nixpkgs> {} }:
let
# Create a Python environment with all dependencies properly included
pythonEnv = pkgs.python312.withPackages (ps: with ps; [
# Core dependencies (from requirements.txt)
pygobject3
requests
urllib3
certifi
]);
in
pkgs.mkShell rec {
name = "linuxtoys-dev";
buildInputs = with pkgs; [
# Python environment (pre-configured with packages)
pythonEnv
# GObject Introspection
gobject-introspection
# GTK and GUI libraries
gtk3
libhandy
adwaita-icon-theme
# VTE (Virtual Terminal Emulator) - needed for terminal features
vte
# Pango (must come before GTK dependencies)
pango
# Additional GObject Introspection typelibs
gdk-pixbuf
librsvg
# Development utilities
git
curl
wget
zenity
# Additional system libraries
glib
libxml2
];
# Set environment variables for proper GTK/GObject introspection
shellHook = ''
export GI_TYPELIB_PATH="$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.gtk3}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.vte}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.pango}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.gdk-pixbuf}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.libhandy}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.librsvg}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export GI_TYPELIB_PATH="${pkgs.glib}/lib/girepository-1.0:$GI_TYPELIB_PATH"
export LD_LIBRARY_PATH="${pkgs.gtk3}/lib:${pkgs.pango}/lib:${pkgs.gdk-pixbuf}/lib:${pkgs.vte}/lib:${pkgs.glib}/lib:${pkgs.libhandy}/lib:${pkgs.librsvg}/lib:${pkgs.libxml2}/lib:$LD_LIBRARY_PATH"
echo "✓ LinuxToys development environment loaded"
echo " Run 'python3 p3/run.py' to start the application"
'';
}