mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +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.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, jdupes, hicolor-icon-theme }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "tela-icon-theme";
|
|
version = "2024-09-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = "tela-icon-theme";
|
|
rev = version;
|
|
hash = "sha256-ZzF4U/cTy/7oSDQs4+dezewgNzS5zroba8wpcfPciW4=";
|
|
};
|
|
|
|
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 = "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 ];
|
|
};
|
|
}
|