@@ -0,0 +1,77 @@
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+, gnome-icon-theme
5+, gnome3
6+, gtk-engine-murrine
7+, gtk3
8+, hicolor-icon-theme
9+, humanity-icon-theme
10+, python2Packages
11+}:
12+
13+stdenv.mkDerivation rec {
14+ pname = "ubuntu-themes";
15+ version = "19.04";
16+
17+ src = fetchurl {
18+ url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.orig.tar.gz";
19+ sha256 = "1dy2dmiq2dj80nl2y4mf4ks0c7qmmnpk25wzv2rynwa3s2gkxgih";
20+ };
21+
22+ nativeBuildInputs = [
23+ gtk3
24+ python2Packages.python
25+ ];
26+
27+ propagatedBuildInputs = [
28+ gnome-icon-theme
29+ gnome3.adwaita-icon-theme
30+ humanity-icon-theme
31+ hicolor-icon-theme
32+ ];
33+
34+ propagatedUserEnvPkgs = [
35+ gtk-engine-murrine
36+ ];
37+
38+ dontDropIconThemeCache = true;
39+
40+ postPatch = ''
41+ patchShebangs .
42+ '';
43+
44+ installPhase = ''
45+ runHook preInstall
46+
47+ mkdir -p $out/share/themes
48+ cp -a Ambiance $out/share/themes
49+ cp -a Radiance $out/share/themes
50+
51+ mkdir -p $out/share/icons
52+ cp -a LoginIcons $out/share/icons
53+ cp -a suru-icons $out/share/icons
54+ cp -a ubuntu-mobile $out/share/icons
55+ cp -a ubuntu-mono-dark $out/share/icons
56+ cp -a ubuntu-mono-light $out/share/icons
57+
58+ mv $out/share/icons/{suru-icons,suru}
59+
60+ for theme in $out/share/icons/*; do
61+ gtk-update-icon-cache $theme
62+ done
63+
64+ mkdir -p $out/share/icons/hicolor/48x48/apps
65+ cp -a distributor-logo.png $out/share/icons/hicolor/48x48/apps
66+
67+ runHook postInstall
68+ '';
69+
70+ meta = with stdenv.lib; {
71+ description = "Ubuntu monochrome and Suru icon themes, Ambiance and Radiance themes, and Ubuntu artwork";
72+ homepage = "https://launchpad.net/ubuntu-themes";
73+ license = with licenses; [ cc-by-sa-40 gpl3 ];
74+ platforms = platforms.linux;
75+ maintainers = [ maintainers.romildo ];
76+ };
77+}