cinnamon.*: apply nixpkgs-fmt

This commit is contained in:
Maciej Krüger 2021-11-29 17:34:50 +01:00
parent e14fadd95c
commit 8cbd56b671
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
16 changed files with 44 additions and 31 deletions

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [
(python3.withPackages(p: with p; [ pygobject3 magic setproctitle ]))
(python3.withPackages (p: with p; [ pygobject3 magic setproctitle ]))
gsettings-desktop-schemas
gtk3
glib

View File

@ -25,7 +25,8 @@
, networkmanager
, pkg-config
, polkit
, lib, stdenv
, lib
, stdenv
, wrapGAppsHook
, libxml2
, gtk-doc
@ -153,7 +154,7 @@ stdenv.mkDerivation rec {
'';
passthru = {
providedSessions = ["cinnamon" "cinnamon2d"];
providedSessions = [ "cinnamon" "cinnamon2d" ];
};
meta = with lib; {

View File

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, glib
@ -68,8 +69,8 @@ stdenv.mkDerivation rec {
];
/* ./panels/datetime/test-timezone.c:4:#define TZ_DIR "/usr/share/zoneinfo/"
./panels/datetime/tz.h:32:# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
./panels/datetime/tz.h:34:# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" */
./panels/datetime/tz.h:32:# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
./panels/datetime/tz.h:34:# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" */
postPatch = ''
sed 's|TZ_DIR "/usr/share/zoneinfo/"|TZ_DIR "${tzdata}/share/zoneinfo/"|g' -i ./panels/datetime/test-timezone.c

View File

@ -8,7 +8,8 @@
, pkg-config
, pulseaudio
, python3
, lib, stdenv
, lib
, stdenv
, xkeyboard_config
, xorg
, wrapGAppsHook

View File

@ -5,7 +5,7 @@
, gtk3
, gsettings-desktop-schemas
, extraGSettingsOverrides ? ""
, extraGSettingsOverridePackages ? []
, extraGSettingsOverridePackages ? [ ]
, mint-artwork
, muffin
@ -41,19 +41,19 @@ in
with lib;
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this
runCommand "cinnamon-gsettings-overrides" {}
runCommand "cinnamon-gsettings-overrides" { }
''
schema_dir=$out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas
schema_dir=$out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas
mkdir -p $schema_dir
mkdir -p $schema_dir
${concatMapStrings (pkg: "cp -rf ${glib.getSchemaPath pkg}/*.xml ${glib.getSchemaPath pkg}/*.gschema.override $schema_dir\n") gsettingsOverridePackages}
${concatMapStrings (pkg: "cp -rf ${glib.getSchemaPath pkg}/*.xml ${glib.getSchemaPath pkg}/*.gschema.override $schema_dir\n") gsettingsOverridePackages}
chmod -R a+w $out/share/gsettings-schemas/nixos-gsettings-overrides
chmod -R a+w $out/share/gsettings-schemas/nixos-gsettings-overrides
cat - > $schema_dir/nixos-defaults.gschema.override <<- EOF
${extraGSettingsOverrides}
EOF
cat - > $schema_dir/nixos-defaults.gschema.override <<- EOF
${extraGSettingsOverrides}
EOF
${glib.dev}/bin/glib-compile-schemas $schema_dir
${glib.dev}/bin/glib-compile-schemas $schema_dir
''

View File

@ -4,7 +4,8 @@
, meson
, ninja
, pkg-config
, lib, stdenv
, lib
, stdenv
, wrapGAppsHook
}:

View File

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, meson

View File

@ -15,7 +15,8 @@
, ninja
, pkg-config
, python3
, lib, stdenv
, lib
, stdenv
, systemd
, wrapGAppsHook
, xapps

View File

@ -1,19 +1,19 @@
{ pkgs, lib }:
lib.makeScope pkgs.newScope (self: with self; {
iso-flags-png-320x420 = pkgs.iso-flags.overrideAttrs(p: p // {
iso-flags-png-320x420 = pkgs.iso-flags.overrideAttrs (p: p // {
buildPhase = "make png-country-320x240-fancy";
# installPhase = "mkdir -p $out/share && mv build/png-country-4x2-fancy/res-320x240 $out/share/iso-flags-png-320x420";
installPhase = "mkdir -p $out/share && mv build/png-country-4x2-fancy/res-320x240 $out/share/iso-flags-png";
});
iso-flags-svg = pkgs.iso-flags.overrideAttrs(p: p // {
iso-flags-svg = pkgs.iso-flags.overrideAttrs (p: p // {
buildPhase = "mkdir -p $out/share";
installPhase = "mv svg $out/share/iso-flags-svg";
});
# blueberry -> pkgs/tools/bluetooth/blueberry/default.nix
bulky = callPackage ./bulky {};
bulky = callPackage ./bulky { };
cinnamon-common = callPackage ./cinnamon-common { };
cinnamon-control-center = callPackage ./cinnamon-control-center { };
cinnamon-desktop = callPackage ./cinnamon-desktop { };

View File

@ -1,5 +1,6 @@
{ fetchFromGitHub
, lib, stdenv
, lib
, stdenv
, python3
, sassc
, sass

View File

@ -1,5 +1,6 @@
{ fetchFromGitHub
, lib, stdenv
, lib
, stdenv
, gnome
, gnome-icon-theme
, hicolor-icon-theme

View File

@ -1,5 +1,6 @@
{ fetchFromGitHub
, lib, stdenv
, lib
, stdenv
, gnome
, gnome-icon-theme
, hicolor-icon-theme

View File

@ -14,7 +14,8 @@
, libXtst
, libxkbcommon
, pkg-config
, lib, stdenv
, lib
, stdenv
, udev
, xorg
, wrapGAppsHook

View File

@ -5,7 +5,8 @@
, meson
, ninja
, pkg-config
, lib, stdenv
, lib
, stdenv
, wrapGAppsHook
, libxml2
, gtk3

View File

@ -10,7 +10,8 @@
, ninja
, pkg-config
, python3
, lib, stdenv
, lib
, stdenv
, vala
, wrapGAppsHook
, inxi
@ -48,7 +49,7 @@ stdenv.mkDerivation rec {
buildInputs = [
gobject-introspection
(python3.withPackages(ps: with ps; [
(python3.withPackages (ps: with ps; [
pygobject3
setproctitle # mate applet
]))

View File

@ -21,7 +21,8 @@
, shared-mime-info
, wrapGAppsHook
, xapps
, yelp-tools }:
, yelp-tools
}:
stdenv.mkDerivation rec {
pname = "xviewer";