common-dev/gtk3.nix

30 lines
828 B
Nix
Raw Normal View History

# gtk4.nix
# Install GTK4/Libadwaita and other dependencies for common Pardus Apps/GTK Development
let
pkgs = import <nixpkgs> {};
in pkgs.mkShell {
packages = [
pkgs.gtk3
pkgs.gobject-introspection
pkgs.pkg-config
pkgs.libnotify
pkgs.libadwaita
pkgs.dbus
pkgs.apt
pkgs.libsoup
(pkgs.python3.withPackages (python-pkgs: [
python-pkgs.pycairo
python-pkgs.pygobject3
python-pkgs.pydbus
python-pkgs.dbus-python
python-pkgs.python-apt
python-pkgs.debian
]))
];
shellHook = ''
bash $(pwd "$0")/schemas/compile-schemas.sh
export GSETTINGS_SCHEMAS_PATH="$(pwd "$0")/schemas:$GSETTINGS_SCHEMAS_PATH"
export GSETTINGS_SCHEMA_DIR="$(pwd "$0")/schemas:$GSETTINGS_SCHEMA_DIR"
export XDG_DATA_DIRS="$(pwd "$0")/schemas:$XDG_DATA_DIRS"
'';
}