mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
77 lines
1.7 KiB
Nix
77 lines
1.7 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, gnome-icon-theme
|
|
, adwaita-icon-theme
|
|
, 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
|
|
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 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 ];
|
|
};
|
|
}
|