chore: format all files to nixpkgs standards

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2024-01-16 11:33:01 -03:00
parent c089af45ef
commit 965ac78482
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
12 changed files with 152 additions and 121 deletions

View file

@ -1,37 +1,38 @@
{
fetchFromGitHub,
flavor ? "Mocha",
lib,
stdenvNoCC
}: let
validFlavors = ["Frappe" "Latte" "Macchiato" "Mocha"];
{ fetchFromGitHub
, flavor ? "Mocha"
, lib
, stdenvNoCC
}:
let
validFlavors = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
pname = "catppucin-qt5ct";
in
lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
stdenvNoCC.mkDerivation {
inherit pname;
version = "unstable-2023-10-24";
stdenvNoCC.mkDerivation
{
inherit pname;
version = "unstable-2023-10-24";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "qt5ct";
rev = "89ee948e72386b816c7dad72099855fb0d46d41e";
sha256 = "sha256-t/uyK0X7qt6qxrScmkTU2TvcVJH97hSQuF0yyvSO/qQ=";
};
src = fetchFromGitHub {
owner = "catppuccin";
repo = "qt5ct";
rev = "89ee948e72386b816c7dad72099855fb0d46d41e";
sha256 = "sha256-t/uyK0X7qt6qxrScmkTU2TvcVJH97hSQuF0yyvSO/qQ=";
};
nativeBuildInputs = [ ];
buildInputs = [ ];
nativeBuildInputs = [ ];
buildInputs = [ ];
postPatch = ''
export HOME=$(mktemp -d)
cp -r themes/* $HOME/.config/qt5ct/colors/
'';
postPatch = ''
export HOME=$(mktemp -d)
cp -r themes/* $HOME/.config/qt5ct/colors/
'';
meta = with lib; {
description = "Catppuccin for qt5ct";
homepage = "https://github.com/catppuccin/qt5ct";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
meta = with lib; {
description = "Catppuccin for qt5ct";
homepage = "https://github.com/catppuccin/qt5ct";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -22,5 +22,5 @@ pkgs.stdenv.mkDerivation {
cd $out/
rm Background.jpg
cp -r ${image} $out/Background.jpg
'';
'';
}