Silvan Mosberger 667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00

53 lines
1.3 KiB
Nix

{
fetchFromGitHub,
gitUpdater,
lib,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation {
pname = "sweet-nova";
version = "unstable-2023-09-30";
src = fetchFromGitHub {
owner = "EliverLara";
repo = "Sweet";
rev = "6e82150d7c3bb1e30ed9bd64de4d2ddd8e113205";
hash = "sha256-vy4SO1j4y/cUmbQJNqW1/EPJljEtaRrigYIg4yMKXr4=";
};
buildPhase = ''
runHook preBuild
cd kde
mkdir -p aurorae/themes
mv aurorae/Sweet-Dark aurorae/themes/Sweet-Dark
mv aurorae/Sweet-Dark-transparent aurorae/themes/Sweet-Dark-transparent
rm aurorae/.shade.svg
mv colorschemes color-schemes
mkdir -p plasma/look-and-feel
mv look-and-feel plasma/look-and-feel/com.github.eliverlara.sweet
mv sddm sddm-Sweet
mkdir -p sddm/themes
mv sddm-Sweet sddm/themes/Sweet
mv cursors icons
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -d $out/share
cp -r Kvantum aurorae color-schemes icons konsole plasma sddm $out/share
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Dark and colorful, blurry theme for the KDE Plasma desktop";
homepage = "https://github.com/EliverLara/Sweet";
license = licenses.gpl3Only;
maintainers = [ maintainers.dr460nf1r3 ];
platforms = platforms.all;
};
}