2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-05-29 06:06:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-05-29 06:06:01 +00:00
|
|
|
, gnome-icon-theme
|
|
|
|
, numix-icon-theme-circle
|
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "canta-theme";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2021-09-08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "05h42nrggb6znzjcbh4lqqfcm41h4r85n3vwimp3l4lq5p90igr2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-05-29 06:06:01 +00:00
|
|
|
gnome-icon-theme
|
|
|
|
numix-icon-theme-circle
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
mkdir -p $out/share/themes
|
2020-05-29 06:06:01 +00:00
|
|
|
name= ./install.sh --dest $out/share/themes
|
2020-04-24 23:36:52 +00:00
|
|
|
rm $out/share/themes/*/{AUTHORS,COPYING}
|
2020-05-29 06:06:01 +00:00
|
|
|
install -D -t $out/share/backgrounds wallpaper/canta-wallpaper.svg
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -a icons/Canta $out/share/icons
|
|
|
|
gtk-update-icon-cache $out/share/icons/Canta
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Flat Design theme for GTK based desktop environments";
|
|
|
|
homepage = "https://github.com/vinceliuice/Canta-theme";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-11-06 00:33:48 +00:00
|
|
|
platforms = platforms.linux; # numix-icon-theme-circle unavailable in darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|