aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix')
-rw-r--r--nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix77
1 files changed, 77 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix b/nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix
new file mode 100644
index 00000000000..14779e8d7a3
--- /dev/null
+++ b/nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix
@@ -0,0 +1,77 @@
+{ stdenv
+, fetchurl
+, fetchpatch
+, gnome-icon-theme
+, gnome3
+, gtk-engine-murrine
+, gtk3
+, hicolor-icon-theme
+, humanity-icon-theme
+, python3Packages
+}:
+
+stdenv.mkDerivation rec {
+ pname = "ubuntu-themes";
+ version = "20.10";
+
+ src = fetchurl {
+ url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.orig.tar.gz";
+ sha256 = "00frn2dd4kjhlmwkasrx4a820fwrg8f8hmiwh51m63bpj00vwn0r";
+ };
+
+ nativeBuildInputs = [
+ gtk3
+ python3Packages.python
+ ];
+
+ propagatedBuildInputs = [
+ gnome-icon-theme
+ gnome3.adwaita-icon-theme
+ humanity-icon-theme
+ hicolor-icon-theme
+ ];
+
+ propagatedUserEnvPkgs = [
+ gtk-engine-murrine
+ ];
+
+ dontDropIconThemeCache = true;
+
+ postPatch = ''
+ patchShebangs .
+ '';
+
+ installPhase = ''
+ runHook preInstall
+
+ mkdir -p $out/share/themes
+ cp -a Ambiance $out/share/themes
+ cp -a Radiance $out/share/themes
+
+ mkdir -p $out/share/icons
+ cp -a LoginIcons $out/share/icons
+ cp -a suru-icons $out/share/icons
+ cp -a ubuntu-mobile $out/share/icons
+ cp -a ubuntu-mono-dark $out/share/icons
+ cp -a ubuntu-mono-light $out/share/icons
+
+ mv $out/share/icons/{suru-icons,suru}
+
+ for theme in $out/share/icons/*; do
+ gtk-update-icon-cache $theme
+ done
+
+ mkdir -p $out/share/icons/hicolor/48x48/apps
+ cp -a distributor-logo.png $out/share/icons/hicolor/48x48/apps
+
+ runHook postInstall
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Ubuntu monochrome and Suru icon themes, Ambiance and Radiance themes, and Ubuntu artwork";
+ homepage = "https://launchpad.net/ubuntu-themes";
+ license = with licenses; [ cc-by-sa-40 gpl3 ];
+ platforms = platforms.linux;
+ maintainers = [ maintainers.romildo ];
+ };
+}