diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-07-13 23:20:04 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-07-13 23:21:06 +0000 |
commit | a42c1d6d62656dcf9bd85de620f2e200a5ad22d8 (patch) | |
tree | 7d481fea9872f62a034452612be17f4494159baa /nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix | |
parent | 55f69a6b0e53c1c4b3e0396937c53bf5662b5519 (diff) | |
parent | 9480bae337095fd24f61380bce3174fdfe926a00 (diff) | |
download | nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.tar nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.tar.gz nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.tar.bz2 nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.tar.lz nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.tar.xz nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.tar.zst nixlib-a42c1d6d62656dcf9bd85de620f2e200a5ad22d8.zip |
Merge commit '9480bae337095fd24f61380bce3174fdfe926a00'
This is the last nixos-unstable release before 13b2903169f, which I'm a bit nervous about. So I want the update including that one to be as small as possible, hence going to this one first.
Diffstat (limited to 'nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/themes/ubuntu-themes/default.nix | 77 |
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 000000000000..6be3ce1d80bd --- /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 +, python2Packages +}: + +stdenv.mkDerivation rec { + pname = "ubuntu-themes"; + version = "19.04"; + + src = fetchurl { + url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.orig.tar.gz"; + sha256 = "1dy2dmiq2dj80nl2y4mf4ks0c7qmmnpk25wzv2rynwa3s2gkxgih"; + }; + + nativeBuildInputs = [ + gtk3 + python2Packages.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 ]; + }; +} |