8 , platformVariants ? []
12 pname = "fuchsia-cursor";
14 lib.checkListOfEnum "${pname}: theme variants" [ "Fuchsia" "Fuchsia-Pop" "Fuchsia-Red" ] themeVariants
15 lib.checkListOfEnum "${pname}: size variants" [ "16" "24" "32" "48" ] sizeVariants
16 lib.checkListOfEnum "${pname}: platform variants" [ "x11" "windows" ] platformVariants
18 stdenvNoCC.mkDerivation rec {
22 src = fetchFromGitHub {
24 repo = "fuchsia-cursor";
26 hash = "sha256-WnDtUsjRXT7bMppgwU5BIDqphP69DmPzQM/0qXES5tM=";
37 ${if themeVariants != [] then ''
38 name= ctgen build.toml \
39 ${lib.optionalString (themeVariants != []) "-d bitmaps/" + toString themeVariants + " -n " + toString themeVariants} \
40 ${lib.optionalString (sizeVariants != []) "-s " + toString sizeVariants} \
41 ${lib.optionalString (platformVariants != []) "-p " + toString platformVariants} \
44 name= ctgen build.toml -d bitmaps/Fuchsia -n Fuchsia \
45 ${lib.optionalString (sizeVariants != []) "-s " + toString sizeVariants} \
46 ${lib.optionalString (platformVariants != []) "-p " + toString platformVariants} \
54 description = "First OpenSource port of FuchsiaOS's cursors for Linux and Windows";
55 homepage = "https://github.com/ful1e5/fuchsia-cursor";
56 maintainers = with maintainers; [ d3vil0p3r ];
57 platforms = platforms.all;
58 license = licenses.gpl3Plus;