nixpkgs/pkgs/by-name/ro/rose-pine-icon-theme/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

48 lines
1.1 KiB
Nix

{ stdenvNoCC
, lib
, fetchFromGitHub
, gtk3
}:
stdenvNoCC.mkDerivation rec {
pname = "rose-pine-icon-theme";
version = "unstable-2022-09-01";
src = fetchFromGitHub {
owner = "rose-pine";
repo = "gtk";
rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304";
sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67";
};
nativeBuildInputs = [
gtk3
];
# avoid the makefile which is only for the theme maintainers
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
mv icons/rose-pine-icons $out/share/icons/rose-pine
mv icons/rose-pine-dawn-icons $out/share/icons/rose-pine-dawn
mv icons/rose-pine-moon-icons $out/share/icons/rose-pine-moon
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall
'';
meta = with lib; {
description = "Rosé Pine icon theme for GTK";
homepage = "https://github.com/rose-pine/gtk";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [romildo the-argus];
};
}