From c2fbd20fc6cc4a475481081be308b3c53f82f5ab Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 17 Jul 2024 23:56:27 +0800 Subject: [PATCH] iso-flags-png-320x240: Renamed and moved from cinnamon.iso-flags-png-320x420 The PNGs are under resolution 320x240 (instead of 320x420). --- pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix | 7 ++----- pkgs/desktops/cinnamon/default.nix | 7 +------ pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 9 +++++++++ 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix b/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix index f67ba3a2b82a..7de42ca849a1 100644 --- a/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix +++ b/pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix @@ -23,7 +23,7 @@ , xapp , xdotool , xorg -, iso-flags-png-320x420 +, iso-flags-png-320x240 }: stdenv.mkDerivation rec { @@ -74,9 +74,6 @@ stdenv.mkDerivation rec { cinnamon-common libgnomekbd gnome.caribou - - # things - iso-flags-png-320x420 ]; postPatch = '' @@ -85,7 +82,7 @@ stdenv.mkDerivation rec { -e s,/usr/share/locale,/run/current-system/sw/share/locale,g \ -e s,/usr/lib/cinnamon-screensaver,$out/lib,g \ -e s,/usr/share/cinnamon-screensaver,$out/share,g \ - -e s,/usr/share/iso-flag-png,${iso-flags-png-320x420}/share/iso-flags-png,g \ + -e s,/usr/share/iso-flag-png,${iso-flags-png-320x240}/share/iso-flags-png,g \ {} + ''; diff --git a/pkgs/desktops/cinnamon/default.nix b/pkgs/desktops/cinnamon/default.nix index 4b0ded586954..67b253200d91 100644 --- a/pkgs/desktops/cinnamon/default.nix +++ b/pkgs/desktops/cinnamon/default.nix @@ -1,12 +1,6 @@ { config, pkgs, lib }: lib.makeScope pkgs.newScope (self: with self; { - 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 // { buildPhase = "mkdir -p $out/share"; installPhase = "mv svg $out/share/iso-flags-svg"; @@ -42,6 +36,7 @@ lib.makeScope pkgs.newScope (self: with self; { }) // lib.optionalAttrs config.allowAliases { # Aliases need to be outside the scope or they will shadow the attributes from parent scope. bulky = lib.warn "cinnamon.bulky was moved to top-level. Please use pkgs.bulky directly." pkgs.bulky; # Added on 2024-07-14 + iso-flags-png-320x420 = lib.warn "cinnamon.iso-flags-png-320x420 was moved to top-level and renamed to pkgs.iso-flags-png-320x240." pkgs.iso-flags-png-320x240; # Added on 2024-07-14 folder-color-switcher = lib.warn "cinnamon.folder-color-switcher was moved to top-level. Please use pkgs.folder-color-switcher directly." pkgs.folder-color-switcher; # Added on 2024-07-14 mint-artwork = lib.warn "cinnamon.mint-artwork was moved to top-level. Please use pkgs.mint-artwork directly." pkgs.mint-artwork; # Added on 2024-07-14 mint-cursor-themes = lib.warn "cinnamon.mint-cursor-themes was moved to top-level. Please use pkgs.mint-cursor-themes directly." pkgs.mint-cursor-themes; # Added on 2024-07-14 diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 1a5903a4d959..ebe4b57f7bf8 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -640,6 +640,7 @@ mapAliases ({ ipfs-migrator-unwrapped = kubo-migrator-unwrapped; # Added 2022-09-27 ipfs-migrator = kubo-migrator; # Added 2022-09-27 iproute = iproute2; # moved from top-level 2021-03-14 + iso-flags-png-320x420 = lib.warn "iso-flags-png-320x420 has been renamed to iso-flags-png-320x240" iso-flags-png-320x240; # Added 2024-07-17 ### J ### diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 79bfe7e5f339..a76e18645de1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21274,6 +21274,15 @@ with pkgs; iso-flags = callPackage ../data/icons/iso-flags { }; + iso-flags-png-320x240 = iso-flags.overrideAttrs (oldAttrs: { + buildFlags = [ "png-country-320x240-fancy" ]; + installPhase = '' + runHook preInstall + mkdir -p $out/share && mv build/png-country-4x2-fancy/res-320x240 $out/share/iso-flags-png + runHook postInstall + ''; + }); + isoimagewriter = libsForQt5.callPackage ../tools/misc/isoimagewriter {}; isort = with python3Packages; toPythonApplication isort;