9 , buttonVariants ? [] # default to all
10 , colorVariants ? [] # default to all
11 , opacityVariants ? [] # default to all
12 , sizeVariants ? [] # default to all
16 pname = "sierra-gtk-theme";
18 lib.checkListOfEnum "${pname}: button variants" [ "standard" "alt" ] buttonVariants
19 lib.checkListOfEnum "${pname}: color variants" [ "light" "dark" ] colorVariants
20 lib.checkListOfEnum "${pname}: opacity variants" [ "standard" "solid" ] opacityVariants
21 lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVariants
25 version = "unstable-2021-05-24";
27 src = fetchFromGitHub {
28 owner = "vinceliuice";
30 rev = "05899001c4fc2fec87c4d222cb3997c414e0affd";
31 sha256 = "174l5mryc34ma1r42pk6572c6i9hmzr9vj1a6w06nqz5qcfm1hds";
44 propagatedUserEnvPkgs = [
51 patchShebangs install.sh
53 mkdir -p $out/share/themes
54 name= ./install.sh --dest $out/share/themes \
55 ${lib.optionalString (buttonVariants != []) "--alt " + builtins.toString buttonVariants} \
56 ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
57 ${lib.optionalString (opacityVariants != []) "--opacity " + builtins.toString opacityVariants} \
58 ${lib.optionalString (sizeVariants != []) "--flat " + builtins.toString sizeVariants}
60 # Replace duplicate files with hardlinks to the first file in each
61 # set of duplicates, reducing the installed size in about 79%
62 jdupes -L -r $out/share
68 description = "Mac OSX like theme for GTK based desktop environments";
69 homepage = "https://github.com/vinceliuice/Sierra-gtk-theme";
70 license = licenses.gpl3;
71 platforms = platforms.unix;
72 maintainers = [ maintainers.romildo ];