Merge pull request #147844 from mkg20001/cin

This commit is contained in:
Maciej Krüger 2021-11-30 19:18:14 +01:00 committed by GitHub
commit aae62adc6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 44 additions and 31 deletions

View File

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

View File

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

View File

@ -1,4 +1,5 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, pkg-config , pkg-config
, glib , glib
@ -68,8 +69,8 @@ stdenv.mkDerivation rec {
]; ];
/* ./panels/datetime/test-timezone.c:4:#define TZ_DIR "/usr/share/zoneinfo/" /* ./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: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:34:# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" */
postPatch = '' postPatch = ''
sed 's|TZ_DIR "/usr/share/zoneinfo/"|TZ_DIR "${tzdata}/share/zoneinfo/"|g' -i ./panels/datetime/test-timezone.c 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 , pkg-config
, pulseaudio , pulseaudio
, python3 , python3
, lib, stdenv , lib
, stdenv
, xkeyboard_config , xkeyboard_config
, xorg , xorg
, wrapGAppsHook , wrapGAppsHook

View File

@ -5,7 +5,7 @@
, gtk3 , gtk3
, gsettings-desktop-schemas , gsettings-desktop-schemas
, extraGSettingsOverrides ? "" , extraGSettingsOverrides ? ""
, extraGSettingsOverridePackages ? [] , extraGSettingsOverridePackages ? [ ]
, mint-artwork , mint-artwork
, muffin , muffin
@ -41,19 +41,19 @@ in
with lib; with lib;
# TODO: Having https://github.com/NixOS/nixpkgs/issues/54150 would supersede this # 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 cat - > $schema_dir/nixos-defaults.gschema.override <<- EOF
${extraGSettingsOverrides} ${extraGSettingsOverrides}
EOF EOF
${glib.dev}/bin/glib-compile-schemas $schema_dir ${glib.dev}/bin/glib-compile-schemas $schema_dir
'' ''

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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