deepin.dde-gsettings-schemas: init

This commit is contained in:
rewine 2023-04-24 16:53:23 +08:00 committed by rewine
parent dba20db482
commit 7eafa18142
No known key found for this signature in database
GPG Key ID: AABB329787290824
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{ lib
, stdenv
, runCommand
, glib
, gtk3
, dtkcommon
, dde-dock
, startdde
, dde-launcher
, dde-session-shell
, dde-session-ui
, dde-control-center
, dde-file-manager
, deepin-desktop-schemas
, deepin-movie-reborn
, deepin-screen-recorder
, deepin-system-monitor
, extraGSettingsOverrides ? ""
, extraGSettingsOverridePackages ? [ ]
}:
let
gsettingsOverridePackages = [
dtkcommon
dde-dock
startdde
dde-launcher
dde-session-shell
dde-session-ui
dde-control-center
dde-file-manager
deepin-desktop-schemas
deepin-movie-reborn
deepin-screen-recorder
deepin-system-monitor
] ++ extraGSettingsOverridePackages;
in
with lib;
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this
runCommand "nixos-gsettings-desktop-schemas" { }
''
schema_dir=$out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas
mkdir -p $schema_dir
${concatMapStrings (pkg: "cp -rvf ${glib.getSchemaPath pkg}/* $schema_dir\n") gsettingsOverridePackages}
chmod -R a+w $out/share/gsettings-schemas/nixos-gsettings-overrides
cat - > $schema_dir/nixos-defaults.gschema.override <<- EOF
${extraGSettingsOverrides}
EOF
${glib.dev}/bin/glib-compile-schemas $schema_dir
''

View File

@ -37,6 +37,7 @@ let
dde-session-ui = callPackage ./core/dde-session-ui { };
dde-polkit-agent = callPackage ./core/dde-polkit-agent { };
dpa-ext-gnomekeyring = callPackage ./core/dpa-ext-gnomekeyring { };
dde-gsettings-schemas = callPackage ./core/dde-gsettings-schemas { };
#### Dtk Application
deepin-album = callPackage ./apps/deepin-album { };