blob: 8f06327b9706ca1c9fdb2d7b95417f6bd88cf4f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ lib
, stdenv
, fetchFromGitHub
, gdk-pixbuf
, librsvg
, gtk-engine-murrine
, gtk3
, adwaita-icon-theme
, gnome-icon-theme
, numix-icon-theme-circle
, hicolor-icon-theme
}:
stdenv.mkDerivation rec {
pname = "canta-theme";
version = "2021-09-08";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
sha256 = "05h42nrggb6znzjcbh4lqqfcm41h4r85n3vwimp3l4lq5p90igr2";
};
nativeBuildInputs = [
gtk3
];
buildInputs = [
gdk-pixbuf
librsvg
];
propagatedBuildInputs = [
adwaita-icon-theme
gnome-icon-theme
numix-icon-theme-circle
hicolor-icon-theme
];
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
dontDropIconThemeCache = true;
installPhase = ''
patchShebangs .
mkdir -p $out/share/themes
name= ./install.sh --dest $out/share/themes
rm $out/share/themes/*/{AUTHORS,COPYING}
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
'';
meta = with lib; {
description = "Flat Design theme for GTK based desktop environments";
homepage = "https://github.com/vinceliuice/Canta-theme";
license = licenses.gpl2Only;
platforms = platforms.linux; # numix-icon-theme-circle unavailable in darwin
maintainers = [ maintainers.romildo ];
};
}
|