nixpkgs/pkgs/data/icons/tela-icon-theme/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

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