catppuccin-cursors: 0.2.0 -> 0.2.1
This commit is contained in:
parent
3f99d04a16
commit
914a9ca2c8
@ -1,36 +1,47 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, unzip
|
, inkscape
|
||||||
|
, just
|
||||||
|
, xcursorgen
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
dimensions = {
|
dimensions = {
|
||||||
palette = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
|
palette = [ "frappe" "latte" "macchiato" "mocha" ];
|
||||||
color = [ "Blue" "Dark" "Flamingo" "Green" "Lavender" "Light" "Maroon" "Mauve" "Peach" "Pink" "Red" "Rosewater" "Sapphire" "Sky" "Teal" "Yellow" ];
|
color = [ "Blue" "Dark" "Flamingo" "Green" "Lavender" "Light" "Maroon" "Mauve" "Peach" "Pink" "Red" "Rosewater" "Sapphire" "Sky" "Teal" "Yellow" ];
|
||||||
};
|
};
|
||||||
variantName = { palette, color }: (lib.strings.toLower palette) + color;
|
variantName = { palette, color }: palette + color;
|
||||||
variants = lib.mapCartesianProduct variantName dimensions;
|
variants = lib.mapCartesianProduct variantName dimensions;
|
||||||
|
version = "0.2.1";
|
||||||
in
|
in
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation {
|
||||||
pname = "catppuccin-cursors";
|
pname = "catppuccin-cursors";
|
||||||
version = "0.2.0";
|
inherit version;
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "catppuccin";
|
owner = "catppuccin";
|
||||||
repo = "cursors";
|
repo = "cursors";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-TgV5f8+YWR+h61m6WiBMg3aBFnhqShocZBdzZHSyU2c=";
|
hash = "sha256-aQfbziN5z62LlgVq4CNMXVMmTrzChFgWUMAmO/2/z3Y=";
|
||||||
sparseCheckout = [ "cursors" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ just inkscape xcursorgen ];
|
||||||
|
|
||||||
outputs = variants ++ [ "out" ]; # dummy "out" output to prevent breakage
|
outputs = variants ++ [ "out" ]; # dummy "out" output to prevent breakage
|
||||||
|
|
||||||
outputsToInstall = [];
|
outputsToInstall = [];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
patchShebangs .
|
||||||
|
|
||||||
|
just all
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
@ -43,9 +54,9 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
|
|
||||||
# Convert to kebab case with the first letter of each word capitalized
|
# Convert to kebab case with the first letter of each word capitalized
|
||||||
local variant=$(sed 's/\([A-Z]\)/-\1/g' <<< "$output")
|
local variant=$(sed 's/\([A-Z]\)/-\1/g' <<< "$output")
|
||||||
local variant=''${variant^}
|
local variant=''${variant,,}
|
||||||
|
|
||||||
unzip "cursors/Catppuccin-$variant-Cursors.zip" -d "$iconsDir"
|
mv "dist/catppuccin-$variant-cursors" "$iconsDir"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -55,11 +66,11 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Catppuccin cursor theme based on Volantes";
|
description = "Catppuccin cursor theme based on Volantes";
|
||||||
homepage = "https://github.com/catppuccin/cursors";
|
homepage = "https://github.com/catppuccin/cursors";
|
||||||
license = licenses.gpl2;
|
license = lib.licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with maintainers; [ dixslyf ];
|
maintainers = with lib.maintainers; [ dixslyf ];
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -28311,8 +28311,6 @@ with pkgs;
|
|||||||
|
|
||||||
cascadia-code = callPackage ../data/fonts/cascadia-code { };
|
cascadia-code = callPackage ../data/fonts/cascadia-code { };
|
||||||
|
|
||||||
catppuccin-cursors = callPackage ../data/icons/catppuccin-cursors { };
|
|
||||||
|
|
||||||
ccsymbols = callPackage ../data/fonts/ccsymbols { };
|
ccsymbols = callPackage ../data/fonts/ccsymbols { };
|
||||||
|
|
||||||
charis-sil = callPackage ../data/fonts/charis-sil { };
|
charis-sil = callPackage ../data/fonts/charis-sil { };
|
||||||
|
Loading…
Reference in New Issue
Block a user