depot/third_party/nixpkgs/pkgs/data/icons/tela-icon-theme/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

44 lines
1.2 KiB
Nix

{ lib, stdenvNoCC, fetchFromGitHub, gtk3, jdupes, hicolor-icon-theme }:
stdenvNoCC.mkDerivation rec {
pname = "tela-icon-theme";
version = "2023-06-25";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = "tela-icon-theme";
rev = version;
hash = "sha256-tv0C4mW2A3dScUXBWa7a3lkG4lPIjZTsj5b1/oEVuiw=";
};
nativeBuildInputs = [ gtk3 jdupes ];
propagatedBuildInputs = [ hicolor-icon-theme ];
dontDropIconThemeCache = true;
# These fixup steps are slow and unnecessary.
dontPatchELF = true;
dontRewriteSymlinks = true;
installPhase = ''
runHook preInstall
patchShebangs install.sh
mkdir -p $out/share/icons
./install.sh -a -d $out/share/icons
jdupes -l -r $out/share/icons
runHook postInstall
'';
meta = with lib; {
description = "A flat colorful Design icon theme";
homepage = "https://github.com/vinceliuice/tela-icon-theme";
changelog = "https://github.com/vinceliuice/Tela-icon-theme/releases/tag/${src.rev}";
license = licenses.gpl3Only;
# darwin systems use case-insensitive filesystems that cause hash mismatches
platforms = subtractLists platforms.darwin platforms.unix;
maintainers = with maintainers; [ figsoda ];
};
}