mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
mate.mate-gsettings-overrides: init
This commit is contained in:
parent
398cce395c
commit
14877de6ad
@ -27,6 +27,7 @@ let
|
||||
mate-common = callPackage ./mate-common { };
|
||||
mate-control-center = callPackage ./mate-control-center { };
|
||||
mate-desktop = callPackage ./mate-desktop { };
|
||||
mate-gsettings-overrides = callPackage ./mate-gsettings-overrides { };
|
||||
mate-icon-theme = callPackage ./mate-icon-theme { };
|
||||
mate-icon-theme-faenza = callPackage ./mate-icon-theme-faenza { };
|
||||
mate-indicator-applet = callPackage ./mate-indicator-applet { };
|
||||
|
24
pkgs/desktops/mate/mate-gsettings-overrides/default.nix
Normal file
24
pkgs/desktops/mate/mate-gsettings-overrides/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ lib
|
||||
, runCommand
|
||||
, gsettings-desktop-schemas
|
||||
, mate-wayland-session
|
||||
, glib
|
||||
}:
|
||||
|
||||
let
|
||||
gsettingsOverridePackages = [
|
||||
gsettings-desktop-schemas
|
||||
mate-wayland-session
|
||||
];
|
||||
in
|
||||
runCommand "mate-gsettings-overrides" { preferLocalBuild = true; } ''
|
||||
data_dir="$out/share/gsettings-schemas/nixos-gsettings-overrides"
|
||||
schema_dir="$data_dir/glib-2.0/schemas"
|
||||
mkdir -p "$schema_dir"
|
||||
|
||||
${lib.concatMapStringsSep "\n" (pkg: "cp -rf \"${glib.getSchemaPath pkg}\"/*.xml \"${glib.getSchemaPath pkg}\"/*.gschema.override \"$schema_dir\"") gsettingsOverridePackages}
|
||||
|
||||
chmod -R a+w "$data_dir"
|
||||
|
||||
${glib.dev}/bin/glib-compile-schemas --strict "$schema_dir"
|
||||
''
|
Loading…
Reference in New Issue
Block a user