add gtk3 configuration and update schema

This commit is contained in:
Aliberk Sandıkçı 2024-06-22 18:29:11 +03:00
parent b4ea83e602
commit d945404da4
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
4 changed files with 35 additions and 4 deletions

30
gtk3.nix Normal file
View file

@ -0,0 +1,30 @@
# 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"
'';
}

View file

@ -22,6 +22,7 @@ in pkgs.mkShell {
]))
];
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"

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="com.asandikci.pardus-security-center" path="/com/asandikci/pardus-security-center/">
<key name="first-run" type="b">
<default>true</default>
<summary>First Run</summary>
<description>Did application run before or is this first run?</description>
<key name="setup-completed" type="b">
<default>false</default>
<summary>Setup Completed</summary>
<description>Did application set up necessary packages/configurations (like clamav, ufw etc.) ?</description>
</key>
</schema>
</schemalist>

Binary file not shown.